Skip to content

Commit 3f7c0cd

Browse files
LeoYuanJackLian
authored andcommitted
feat: support opening document with id
1 parent 152a24d commit 3f7c0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/designer/src/project/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class Project {
214214
return doc.open();
215215
}
216216
if (typeof doc === 'string') {
217-
const got = this.documents.find((item) => item.fileName === doc);
217+
const got = this.documents.find((item) => item.fileName === doc || item.id === doc);
218218
if (got) {
219219
return got.open();
220220
}

0 commit comments

Comments
 (0)