From 1460194fc66cf160b66f3fe0a8be8c870bceab8c Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 17 Sep 2023 05:24:23 +0800 Subject: [PATCH] Set a default position to new bookmark category --- components/newBookmarkForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/newBookmarkForm.tsx b/components/newBookmarkForm.tsx index 6286a2a..bfb4bd4 100644 --- a/components/newBookmarkForm.tsx +++ b/components/newBookmarkForm.tsx @@ -52,6 +52,7 @@ export default function NewBookmarkForm({ const submitCategory = async () => { const body = { name: categoryName, + position: 1, } await fetch('/api/bookmark_category', { method: 'POST',