We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152a24d commit 3f7c0cdCopy full SHA for 3f7c0cd
1 file changed
packages/designer/src/project/project.ts
@@ -214,7 +214,7 @@ export class Project {
214
return doc.open();
215
}
216
if (typeof doc === 'string') {
217
- const got = this.documents.find((item) => item.fileName === doc);
+ const got = this.documents.find((item) => item.fileName === doc || item.id === doc);
218
if (got) {
219
return got.open();
220
0 commit comments