Skip to content

Commit

Permalink
web: refresh notes after deleting a topic
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Sep 8, 2022
1 parent 201366b commit f2d30ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/common/multi-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ async function deleteTopics(notebookId: string, topics: Item[]) {
?.notebook(notebookId)
.topics.delete(...topics.map((t) => t.id));
notebookStore.setSelectedNotebook(notebookId);
noteStore.refresh();
}
});
showToast("success", `${topics.length} topics deleted`);
Expand Down

0 comments on commit f2d30ad

Please sign in to comment.