From ba828f5b170c63d855a51f6d81dd2c6078814273 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sat, 23 Mar 2024 17:37:26 +0100 Subject: [PATCH] small bugfix --- src/Components/Templates/ItemsIndexPage.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Components/Templates/ItemsIndexPage.tsx b/src/Components/Templates/ItemsIndexPage.tsx index 749ddcfa..eb17d34f 100644 --- a/src/Components/Templates/ItemsIndexPage.tsx +++ b/src/Components/Templates/ItemsIndexPage.tsx @@ -87,9 +87,7 @@ export const ItemsIndexPage = ({ api, url, parameterField, breadcrumbs, itemName toast.error(error.toString()); } if (success) { - addItem({ ...formItem, id: uuid, type: type, layer: layers.find(l => l.name == addItemPopupType), user_created: user }); toast.success("New item created"); - resetFilterTags(); } setLoading(false); setAddItemPopupType(""); @@ -111,10 +109,10 @@ export const ItemsIndexPage = ({ api, url, parameterField, breadcrumbs, itemName setLoading(false); setItems(items.filter(i=>i.id !=item.id)) console.log("chaka"); - } + return (