Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 7a0a54b

Browse files
committed
fix: showing tags when they are adding or removed
1 parent cc29aea commit 7a0a54b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/web-app/composables/useNotes.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ export const useNotes = () => {
7979
body: tags,
8080
});
8181

82-
const note = notes.value.find((n) => n.id === noteId);
83-
if (note) {
84-
note.tags = tags;
85-
}
82+
await Promise.all([fetchNotes(), fetchTags()]);
8683
}
8784

8885
const searchNotes = (searchText: string): Note[] => {
@@ -168,7 +165,7 @@ export const useNotes = () => {
168165
// remove from selected tags
169166
selectedTags.value = [...selectedTags.value.filter((t) => t.id !== id)];
170167

171-
await fetchTags();
168+
await Promise.all([fetchNotes(), fetchTags()]);
172169
};
173170

174171
const updateTag = async (tag: Tag) => {

0 commit comments

Comments
 (0)