fix: init state

This commit is contained in:
Yifeng Wang 2022-10-24 12:34:34 +08:00
parent 415ca606fd
commit 62aaf25f8a

View File

@ -23,8 +23,7 @@ export const Editor = () => {
const text = new Text(store, 'Legend from here...');
store.addBlock({ flavour: 'paragraph', text }, groupId);
// store.resetHistory();
store.resetHistory();
}, [setEditor]);
return (