From 1aaabebc9975c0c190d5033efd401d1487dcbb28 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:20:46 +0200 Subject: [PATCH] reinsert uuid to fix notifiations in backend (#342) --- lib/src/Components/Map/Subcomponents/ItemFormPopup.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/Components/Map/Subcomponents/ItemFormPopup.tsx b/lib/src/Components/Map/Subcomponents/ItemFormPopup.tsx index e85e97fe..534336a3 100644 --- a/lib/src/Components/Map/Subcomponents/ItemFormPopup.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemFormPopup.tsx @@ -159,8 +159,11 @@ export function ItemFormPopup(props: Props) { popupForm.layer.api?.updateItem!({ ...formItem, id: existingUserItem.id }) ?? Promise.resolve({} as Item) : () => - popupForm.layer.api?.createItem!({ ...formItem, name: itemName }) ?? - Promise.resolve({} as Item) + popupForm.layer.api?.createItem!({ + ...formItem, + name: itemName, + id: crypto.randomUUID(), + }) ?? Promise.resolve({} as Item) const result = await handleApiOperation( operation,