diff --git a/components/newBookmarkForm.tsx b/components/newBookmarkForm.tsx index afe466f..aa59d28 100644 --- a/components/newBookmarkForm.tsx +++ b/components/newBookmarkForm.tsx @@ -33,12 +33,13 @@ export default function NewBookmarkForm({ } const submitBookmark = async () => { + if (value === 'all') return const body = { name, link, description, url, - category_id: parseInt(value.currentKey), + category_id: parseInt(value.values().next().value), } await fetch('/api/bookmark', { method: 'POST',