mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
@@ -162,7 +162,7 @@ export class DocDisplayMetaService
|
||||
if (!title$) {
|
||||
title$ = signal(doc.meta?.title || 'Untitled');
|
||||
|
||||
const disposable = this.std.collection.meta.docMetaUpdated.on(() => {
|
||||
const disposable = this.std.collection.slots.docListUpdated.on(() => {
|
||||
title$!.value = doc.meta?.title || 'Untitled';
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user