Fix: personal theme crashed due to unset defaultIcon

This commit is contained in:
Pieter Vander Vennet 2023-05-29 02:11:05 +02:00
parent aface6aea7
commit 6075b01648

View file

@ -124,7 +124,7 @@
<MapControlButton on:click={() =>state.guistate.menuIsOpened.setData(true)}>
<MenuIcon class="w-8 h-8 cursor-pointer"></MenuIcon>
</MapControlButton>
{#if currentViewLayer?.tagRenderings}
{#if currentViewLayer?.tagRenderings && currentViewLayer.defaultIcon()}
<MapControlButton
on:click={() => {selectedLayer.setData(currentViewLayer); selectedElement.setData(state.currentView.features?.data?.[0])}}>
<ToSvelte