mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 20:31:40 +03:00
fix: init state
This commit is contained in:
parent
415ca606fd
commit
62aaf25f8a
@ -23,8 +23,7 @@ export const Editor = () => {
|
|||||||
|
|
||||||
const text = new Text(store, 'Legend from here...');
|
const text = new Text(store, 'Legend from here...');
|
||||||
store.addBlock({ flavour: 'paragraph', text }, groupId);
|
store.addBlock({ flavour: 'paragraph', text }, groupId);
|
||||||
|
store.resetHistory();
|
||||||
// store.resetHistory();
|
|
||||||
}, [setEditor]);
|
}, [setEditor]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user