Skip to content

Build your personal knowledge base with Trilium Notes

fix(collection/presentation): editing no longer works

Elian Doranf9c0b94ecb2a
diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx
index af05d6d4d0..52339dc36a 100644
--- a/apps/client/src/widgets/collections/presentation/index.tsx
+++ b/apps/client/src/widgets/collections/presentation/index.tsx
@@ -96,9 +96,9 @@ function Presentation({ presentation, apiRef: externalApiRef } : { presentation:
return true;
},
});
- externalApiRef.current = apiRef.current;
api.initialize().then(() => {
apiRef.current = api;
+ externalApiRef.current = api;
});
return () => {