refactor(editor): rename store api (#9518)
This commit is contained in:
@@ -225,7 +225,7 @@ test.describe('Embed synced doc', () => {
|
||||
};
|
||||
|
||||
const doc2Collection = getDocCollection();
|
||||
const doc2 = doc2Collection!.getDoc();
|
||||
const doc2 = doc2Collection!.getBlocks();
|
||||
const [noteBlock] = doc2!.getBlocksByFlavour('affine:note');
|
||||
const noteId = noteBlock.id;
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ async function initEmptyEditor({
|
||||
}
|
||||
|
||||
if (noInit) {
|
||||
const firstDoc = collection.docs.values().next().value?.getDoc() as
|
||||
const firstDoc = collection.docs.values().next().value?.getBlocks() as
|
||||
| ReturnType<typeof collection.createDoc>
|
||||
| undefined;
|
||||
if (firstDoc) {
|
||||
|
||||
Reference in New Issue
Block a user