Skip to content

Commit 330604f

Browse files
committed
fix: Sync currentBookmark.current.tags with state changes
1 parent a0590df commit 330604f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

frontend/components/Bookmark/BookmarkCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export default function BookmarkCard({ bookmark }: Readonly<BookmarkProp>) {
221221
addTagToBookmark(bookmark, tag).then((action) => {
222222
dispatch(action);
223223
setStrTags([...strTags, tag]);
224+
currentBookmark.current.tags.push({ id: action.id, title: action.title });
224225
});
225226

226227
function getIdxFromTitle(title: string): number {

0 commit comments

Comments
 (0)