mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
refactor(editor): reorg code structure of store package (#9525)
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
||||
type BlockModel,
|
||||
type Blocks,
|
||||
type BlockSnapshot,
|
||||
BlockViewType,
|
||||
type DraftModel,
|
||||
type Query,
|
||||
Slice,
|
||||
@@ -194,7 +193,7 @@ async function renderNoteContent(
|
||||
});
|
||||
const query: Query = {
|
||||
mode: 'strict',
|
||||
match: ids.map(id => ({ id, viewType: BlockViewType.Display })),
|
||||
match: ids.map(id => ({ id, viewType: 'display' })),
|
||||
};
|
||||
const previewDoc = doc.doc.getBlocks({ query });
|
||||
const previewSpec = SpecProvider.getInstance().getSpec('page:preview');
|
||||
|
||||
Reference in New Issue
Block a user