web: fix subnotebook title not updating on navigate (#7286)

Signed-off-by: Luis Kriner <luis@kriner.info>
This commit is contained in:
luis-411
2025-02-04 06:06:59 +01:00
committed by GitHub
parent 66d75492bb
commit cb09430ff4

View File

@@ -148,7 +148,10 @@ function SubNotebooks({ rootId, isCollapsed, onClick }: SubNotebooksProps) {
const toggleSelection = useSelectionStore(
(store) => store.toggleSelectionMode
);
const rootNotebook = usePromise(() => db.notebooks.notebook(rootId));
const rootNotebook = usePromise(
() => db.notebooks.notebook(rootId),
[rootId]
);
const notebooks = useNotebookStore((store) => store.notebooks);
useEffect(() => {