From 135334e6d67146232e494a5ad1459eedee9261a1 Mon Sep 17 00:00:00 2001 From: Miguel Vieira Date: Mon, 22 Jul 2024 17:31:47 +0100 Subject: [PATCH] fix(frontend): update to match changes in the data --- frontend/src/lib/components/InscriptionMap.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }, {});