From 70714d62ec0d19f0769fa65773afa56adc0b907b Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 23 May 2025 09:41:39 +0200 Subject: [PATCH] fixing bug on profile-item-create caused by PR 185 --- src/Components/Map/Subcomponents/ItemFormPopup.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Components/Map/Subcomponents/ItemFormPopup.tsx b/src/Components/Map/Subcomponents/ItemFormPopup.tsx index d37d1fe6..572bfa58 100644 --- a/src/Components/Map/Subcomponents/ItemFormPopup.tsx +++ b/src/Components/Map/Subcomponents/ItemFormPopup.tsx @@ -101,9 +101,7 @@ export function ItemFormPopup(props: Props) { setSpinner(false) map.closePopup() } else { - const item = items.find( - (i) => i.user_created?.id === user?.id && i.layer?.id === popupForm.layer.id, - ) + const item = items.find((i) => i.user_created?.id === user?.id && i.layer === popupForm.layer) const uuid = crypto.randomUUID() let success = false