fix: should not create new prop while querying fileName

This commit is contained in:
LeoYuan 袁力皓 2022-03-10 14:06:45 +08:00
parent 926136d02a
commit 19c207d29d

View File

@ -86,7 +86,7 @@ export class DocumentModel {
} }
get fileName(): string { get fileName(): string {
return this.rootNode?.getExtraProp('fileName')?.getAsString() || this.id; return this.rootNode?.getExtraProp('fileName', false)?.getAsString() || this.id;
} }
set fileName(fileName: string) { set fileName(fileName: string) {