Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): request to recent changes for undefined note

Elian Doran9e3b4435cd2a
diff --git a/apps/client/src/widgets/dialogs/recent_changes.tsx b/apps/client/src/widgets/dialogs/recent_changes.tsx
index 60de8b1b0a..d0c26d2d46 100644
--- a/apps/client/src/widgets/dialogs/recent_changes.tsx
+++ b/apps/client/src/widgets/dialogs/recent_changes.tsx
@@ -27,6 +27,7 @@ export default function RecentChangesDialog() {
});
useEffect(() => {
+ if (!ancestorNoteId) return;
server.get<RecentChangeRow[]>(`recent-changes/${ancestorNoteId}`)
.then(async (recentChanges) => {
// preload all notes into cache