diff --git a/src/Components/Map/Tags.tsx b/src/Components/Map/Tags.tsx index ebaaa6cb..11de83b7 100644 --- a/src/Components/Map/Tags.tsx +++ b/src/Components/Map/Tags.tsx @@ -1,8 +1,6 @@ import { useEffect } from 'react' -import { useLocation } from 'react-router-dom' -import { useAddFilterTag, useFilterTags, useResetFilterTags } from './hooks/useFilter' -import { useSetTagData, useSetTagApi, useTags } from './hooks/useTags' +import { useSetTagData, useSetTagApi } from './hooks/useTags' import type { ItemsApi } from '#types/ItemsApi' import type { Tag } from '#types/Tag' diff --git a/src/Components/Map/UtopiaMapInner.tsx b/src/Components/Map/UtopiaMapInner.tsx index 88bb6a62..c099915d 100644 --- a/src/Components/Map/UtopiaMapInner.tsx +++ b/src/Components/Map/UtopiaMapInner.tsx @@ -245,7 +245,10 @@ export function UtopiaMapInner({ const params = new URLSearchParams(location.search) const urlLayersParam = params.get('layers') - if (!urlLayersParam) return + if (!urlLayersParam) { + initializedRef.current = true + return + } const urlLayerNames = urlLayersParam.split(',').filter(Boolean)