A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Delete URL on successful bookmark
MohamedBassem34c3498144e1
diff --git a/packages/web/app/dashboard/bookmarks/components/AddBookmark.tsx b/packages/web/app/dashboard/bookmarks/components/AddBookmark.tsxindex 4f0de87a..d12fc663 100644--- a/packages/web/app/dashboard/bookmarks/components/AddBookmark.tsx+++ b/packages/web/app/dashboard/bookmarks/components/AddBookmark.tsx@@ -32,12 +32,16 @@ function AddLink() {});const form = useForm<z.infer<typeof formSchema>>({resolver: zodResolver(formSchema),+ defaultValues: {+ url: "",+ },});const invalidateBookmarksCache = api.useUtils().bookmarks.invalidate;const createBookmarkMutator = api.bookmarks.createBookmark.useMutation({onSuccess: () => {invalidateBookmarksCache();+ form.reset();},onError: () => {toast({ description: "Something went wrong", variant: "destructive" });