This commit is contained in:
Isaac Wise
2024-02-11 01:29:11 -06:00
parent e2c6993a6d
commit 0a77ee90a7
15 changed files with 186 additions and 129 deletions
+5 -5
View File
@@ -151,11 +151,11 @@ const useLinkStore = create<LinkStore>()((set) => ({
links: state.links.map((e) =>
links.some((link) => link.id === e.id)
? {
...e,
tags: removePreviousTags
? [...(newData.tags ?? [])]
: [...e.tags, ...(newData.tags ?? [])],
}
...e,
tags: removePreviousTags
? [...(newData.tags ?? [])]
: [...e.tags, ...(newData.tags ?? [])],
}
: e
),
}));