aboutsummaryrefslogtreecommitdiffstats
path: root/apps/browser-extension
diff options
context:
space:
mode:
authorkamtschatka <simon.schatka@gmx.at>2024-07-27 22:32:37 +0200
committerGitHub <noreply@github.com>2024-07-27 13:32:37 -0700
commit5e4decbe967ec28f9263bcb1d9907ee86262b91e (patch)
tree0a8f9764af4ef3bc2db7c5e993fef354782a2285 /apps/browser-extension
parenteb0a28ee6b1dd15fb459e0900f5e885ac5c92fec (diff)
downloadkarakeep-5e4decbe967ec28f9263bcb1d9907ee86262b91e.tar.zst
feature(cli): Allow updating tags/lists from CLI (#211)
* Improve the CLI #209 added the possibility to assign tags to bookmarks while creating added the possibility to assign a newly created to a list right away added the possibility to add and remove tags from bookmarks * minor tweaks --------- Co-authored-by: MohamedBassem <me@mbassem.com>
Diffstat (limited to 'apps/browser-extension')
-rw-r--r--apps/browser-extension/src/components/TagsSelector.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/browser-extension/src/components/TagsSelector.tsx b/apps/browser-extension/src/components/TagsSelector.tsx
index 45cf11d5..5ca3b2d0 100644
--- a/apps/browser-extension/src/components/TagsSelector.tsx
+++ b/apps/browser-extension/src/components/TagsSelector.tsx
@@ -32,14 +32,14 @@ export function TagsSelector({ bookmarkId }: { bookmarkId: string }) {
const { mutate } = useUpdateBookmarkTags({
onMutate: (req) => {
req.attach.forEach((t) => currentlyUpdating.add(t.tagId ?? ""));
- req.detach.forEach((t) => currentlyUpdating.add(t.tagId));
+ req.detach.forEach((t) => currentlyUpdating.add(t.tagId ?? ""));
},
onSettled: (_resp, _err, req) => {
if (!req) {
return;
}
req.attach.forEach((t) => currentlyUpdating.delete(t.tagId ?? ""));
- req.detach.forEach((t) => currentlyUpdating.delete(t.tagId));
+ req.detach.forEach((t) => currentlyUpdating.delete(t.tagId ?? ""));
},
});