From aad7a9adfae6bf8bdcaab906cd4f4568ec61f7b8 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Wed, 8 Jan 2025 20:40:56 +0900 Subject: [PATCH] fix: fixed bug of when layer is deleted. (#4699) --- .changeset/nice-peas-wash.md | 5 +++++ .../geohub/src/components/pages/map/layers/LayerEdit.svelte | 2 +- .../components/pages/map/layers/vector/VectorLayer.svelte | 6 +----- .../components/pages/map/layers/vector/VectorLegend.svelte | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .changeset/nice-peas-wash.md diff --git a/.changeset/nice-peas-wash.md b/.changeset/nice-peas-wash.md new file mode 100644 index 000000000..1d4ca48c2 --- /dev/null +++ b/.changeset/nice-peas-wash.md @@ -0,0 +1,5 @@ +--- +"geohub": patch +--- + +fix: fixed bug of when layer is deleted. diff --git a/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte b/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte index d4a4c452e..20772e24f 100644 --- a/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte +++ b/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte @@ -241,7 +241,7 @@ {#if $editingLayerStore.dataset?.properties.is_raster === true} - {:else} + {:else if $editingLayerStore.dataset?.properties.is_raster === false} {/if} diff --git a/sites/geohub/src/components/pages/map/layers/vector/VectorLayer.svelte b/sites/geohub/src/components/pages/map/layers/vector/VectorLayer.svelte index 17aa50c04..fd59dac60 100644 --- a/sites/geohub/src/components/pages/map/layers/vector/VectorLayer.svelte +++ b/sites/geohub/src/components/pages/map/layers/vector/VectorLayer.svelte @@ -163,11 +163,7 @@