Skip to content

Commit

Permalink
Fix error when showing a project page without see-also links
Browse files Browse the repository at this point in the history
  • Loading branch information
xorblo-doitus committed Apr 4, 2024
1 parent 7647dd3 commit b184e33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/elements/define-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ ProjectPage.bindPropertiesToAtributes([
element.remove();
}

if (newValue === "") {
return;
}

for (const pair of newValue.split(" ")) {
const [text, url] = pair.split(":");
const newLink = document.createElement("a");
Expand Down

0 comments on commit b184e33

Please sign in to comment.