From 19c207d29de045f473ba73baaf34e7294d40261a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Thu, 10 Mar 2022 14:06:45 +0800 Subject: [PATCH] fix: should not create new prop while querying fileName --- packages/designer/src/document/document-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/designer/src/document/document-model.ts b/packages/designer/src/document/document-model.ts index e9a00e676..4a34213f3 100644 --- a/packages/designer/src/document/document-model.ts +++ b/packages/designer/src/document/document-model.ts @@ -86,7 +86,7 @@ export class DocumentModel { } get fileName(): string { - return this.rootNode?.getExtraProp('fileName')?.getAsString() || this.id; + return this.rootNode?.getExtraProp('fileName', false)?.getAsString() || this.id; } set fileName(fileName: string) {