diff --git a/frontend/src/lib/components/InscriptionMap.svelte b/frontend/src/lib/components/InscriptionMap.svelte index 9d1dee68bff..d5f8ae6d316 100644 --- a/frontend/src/lib/components/InscriptionMap.svelte +++ b/frontend/src/lib/components/InscriptionMap.svelte @@ -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; }, {});