diff --git a/memento-note/components/home-client.tsx b/memento-note/components/home-client.tsx index 4c20d55..eb66c73 100644 --- a/memento-note/components/home-client.tsx +++ b/memento-note/components/home-client.tsx @@ -85,7 +85,7 @@ export function HomeClient({ initialNotes, initialSettings }: HomeClientProps) { notesRef.current = notes const { refreshKey, triggerRefresh } = useNoteRefresh() const { refreshNotes } = useRefresh() - const { labels, notebooks } = useNotebooks() + const { labels, notebooks, refreshNotebooks } = useNotebooks() const { setControls } = useEditorUI() const { shouldSuggest: shouldSuggestLabels, notebookId: suggestNotebookId, dismiss: dismissLabelSuggestion } = useAutoLabelSuggestion() @@ -826,7 +826,11 @@ export function HomeClient({ initialNotes, initialSettings }: HomeClientProps) { onOpenChange={setOrganizeNotebookOpen} notebookId={currentNotebook.id} notebookName={currentNotebook.name} - onDone={() => router.refresh()} + onDone={() => { + refreshNotebooks() + triggerRefresh() + router.refresh() + }} /> )}