Skip to content

Commit

Permalink
fix: fix small js error (#9516)
Browse files Browse the repository at this point in the history
Value might be null leading to a console error
  • Loading branch information
alexgarel authored Dec 12, 2023
1 parent 7c8a443 commit 9cbf468
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html/js/display-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ function displayMap(pointers, wikidataObjects) {
}

for (var i = 0; i < wikidataObjects.length; ++i) {
addWikidataObjectToMap(wikidataObjects[i]);
const obj = wikidataObjects[i];
if (obj !== null) {
addWikidataObjectToMap(obj);
}
}
}

0 comments on commit 9cbf468

Please sign in to comment.