From 48e180899270a67ddd00e84f23b2962bb4ef80ba Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 12 Aug 2022 15:09:45 +0200 Subject: [PATCH] :bug: Fix a bug with the openedUrl Fixes #337 --- src/components/AppShelf/AddAppShelfItem.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index 135224a27..9cfc402ba 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -172,6 +172,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & onSubmit={form.onSubmit(() => { const newForm = { ...form.values }; if (newForm.newTab === true) newForm.newTab = undefined; + if (newForm.openedUrl === '') newForm.openedUrl = undefined; if (newForm.category === null) newForm.category = undefined; if (newForm.status.length === 1 && newForm.status[0] === '200') { delete newForm.status;