From 645d2c5d7dd0d2f855e1c343f2ceb318c1ada195 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 5 Sep 2025 22:50:26 +0200 Subject: [PATCH] reset layer --- lib/src/Components/Map/Layer.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/src/Components/Map/Layer.tsx b/lib/src/Components/Map/Layer.tsx index c41e715a..7239a7b3 100644 --- a/lib/src/Components/Map/Layer.tsx +++ b/lib/src/Components/Map/Layer.tsx @@ -1,10 +1,8 @@ import { useEffect, useState } from 'react' import { useSetItemsApi, useSetItemsData } from './hooks/useItems' -import { usePopupForm } from './hooks/usePopupForm' import { useAddTag } from './hooks/useTags' import LayerContext from './LayerContext' -import { ItemFormPopup } from './Subcomponents/ItemFormPopup' import type { LayerProps } from '#types/LayerProps' import type { Tag } from '#types/Tag' @@ -44,7 +42,6 @@ export const Layer = ({ const addTag = useAddTag() const [newTagsToAdd] = useState([]) const [tagsReady] = useState(false) - const { popupForm } = usePopupForm() useEffect(() => { data && @@ -119,8 +116,6 @@ export const Layer = ({ }} > {children} - {/* Auto-render ItemFormPopup when popupForm matches this layer */} - {popupForm && popupForm.layer.name === name && } ) }