mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
fix(collection/presentation): editing no longer works
This commit is contained in:
@@ -96,9 +96,9 @@ function Presentation({ presentation, apiRef: externalApiRef } : { presentation:
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
externalApiRef.current = apiRef.current;
|
|
||||||
api.initialize().then(() => {
|
api.initialize().then(() => {
|
||||||
apiRef.current = api;
|
apiRef.current = api;
|
||||||
|
externalApiRef.current = api;
|
||||||
});
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user