We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c62a03c commit d1d1d05Copy full SHA for d1d1d05
apps/client/src/widgets/type_widgets/Book.tsx
@@ -16,7 +16,7 @@ export default function Book({ note }: TypeWidgetProps) {
16
setShouldDisplayNoChildrenWarning(!note.hasChildren() && VIEW_TYPES.includes(viewType ?? ""));
17
}
18
19
- useEffect(refresh, [ note ]);
+ useEffect(refresh, [ note, viewType ]);
20
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
21
if (loadResults.getBranchRows().some(branchRow => branchRow.parentNoteId === note.noteId)) {
22
refresh();
0 commit comments