From 8b7cff2b322bb836ea92c5212d8cb332c9982302 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Wed, 19 Mar 2025 23:07:43 +0000 Subject: [PATCH] fix(source): fix bug in ItemFormPopup (#191) * fix bug in ItemFormPopup * removed logging * removed more logging --- src/Components/Map/Subcomponents/ItemFormPopup.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Components/Map/Subcomponents/ItemFormPopup.tsx b/src/Components/Map/Subcomponents/ItemFormPopup.tsx index 5a2ad79d..534fe2fd 100644 --- a/src/Components/Map/Subcomponents/ItemFormPopup.tsx +++ b/src/Components/Map/Subcomponents/ItemFormPopup.tsx @@ -83,18 +83,13 @@ export function ItemFormPopup(props: ItemFormPopupProps) { toast.error(error.toString()) } if (success) { - // eslint-disable-next-line no-console - console.log(props.item) - updateItem({ ...props.item, ...formItem }) toast.success('Item updated') } setSpinner(false) map.closePopup() } else { - const item = items.find( - (i) => i.user_created?.id === user?.id && i.layer?.id === props.layer.id, - ) + const item = items.find((i) => i.user_created?.id === user?.id && i.layer === props.layer) const uuid = crypto.randomUUID() let success = false