Skip to content

Build your personal knowledge base with Trilium Notes

fix(collection/presentation): sync not called properly

Elian Doranceedcb1a2cbe
diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx
index 119d4e7b05..5fe8f94ff6 100644
--- a/apps/client/src/widgets/collections/presentation/index.tsx
+++ b/apps/client/src/widgets/collections/presentation/index.tsx
@@ -137,7 +137,7 @@ function Presentation({ presentation, setApi } : { presentation: PresentationMod
},
});
api.initialize().then(() => {
- setRevealApi(revealApi);
+ setRevealApi(api);
setApi(api);
});