Skip to content

Commit

Permalink
fix(frontend): update to match changes in the data
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jul 22, 2024
1 parent 1c460c5 commit 135334e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/lib/components/InscriptionMap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
function createPopupContent(inscriptions) {
const inscriptionsByPlace = inscriptions.reduce((acc, curr) => {
if (!acc[curr.place._]) {
acc[curr.place._] = [];
if (!acc[curr.places[0]._]) {
acc[curr.places[0]._] = [];
}
acc[curr.place._].push(curr);
acc[curr.places[0]._].push(curr);
return acc;
}, {});
Expand Down

0 comments on commit 135334e

Please sign in to comment.