mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix: ai slide render initialize error (#7261)
Need add `collection.meta.initialize()` in AI slide render.
Similar codes:
b3ec3a2b3e/packages/frontend/core/src/blocksuite/presets/ai/utils/markdown-utils.ts (L177-L195)
This commit is contained in:
@@ -214,6 +214,7 @@ export class AISlidesRenderer extends WithDisposable(LitElement) {
|
||||
|
||||
const schema = new Schema().register(AffineSchemas);
|
||||
const collection = new DocCollection({ schema, id: 'SLIDES_PREVIEW' });
|
||||
collection.meta.initialize();
|
||||
collection.start();
|
||||
const doc = collection.createDoc();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user