fix(web): handle deletion from asset viewer on map page (#25393)

This commit is contained in:
Mees Frensel
2026-01-21 15:08:01 +01:00
committed by GitHub
parent 0b4a96140e
commit 8970566865
2 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
<script lang="ts">
import { afterNavigate } from '$app/navigation';
import OnEvents from '$lib/components/OnEvents.svelte';
import { Theme } from '$lib/constants';
import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';
import { themeManager } from '$lib/managers/theme-manager.svelte';
@@ -292,8 +293,14 @@
untrack(() => map?.jumpTo({ center, zoom }));
});
const onAssetsDelete = async () => {
mapMarkers = await loadMapMarkers();
};
</script>
<OnEvents {onAssetsDelete} />
<!-- We handle style loading ourselves so we set style blank here -->
<MapLibre
{hash}