diff --git a/frontend/src/lib/components/apps/components/display/AppMap.svelte b/frontend/src/lib/components/apps/components/display/AppMap.svelte index 9e0bcbe929..466b3c9196 100644 --- a/frontend/src/lib/components/apps/components/display/AppMap.svelte +++ b/frontend/src/lib/components/apps/components/display/AppMap.svelte @@ -147,7 +147,6 @@ }) $: css = concatCustomCss($app.css?.mapcomponent, customCss) - $: gridItem = findGridItem($app, id) function updateRegionOutput() { if (map) { @@ -164,6 +163,8 @@ } function handleSyncRegion() { + const gridItem = findGridItem($app, id) + if (!map || !gridItem) { return }