Skip to content

Commit 48e1808

Browse files
committed
🐛 Fix a bug with the openedUrl
Fixes #337
1 parent 85b1a2d commit 48e1808

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/AppShelf/AddAppShelfItem.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
172172
onSubmit={form.onSubmit(() => {
173173
const newForm = { ...form.values };
174174
if (newForm.newTab === true) newForm.newTab = undefined;
175+
if (newForm.openedUrl === '') newForm.openedUrl = undefined;
175176
if (newForm.category === null) newForm.category = undefined;
176177
if (newForm.status.length === 1 && newForm.status[0] === '200') {
177178
delete newForm.status;

0 commit comments

Comments
 (0)