Skip to content

Commit 501e3f0

Browse files
committed
check for data
1 parent 8aa423a commit 501e3f0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/packages/templating/templates/workspace/template-workspace.context.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ export class UmbTemplateWorkspaceContext
7272
}
7373

7474
async create(parent: any) {
75-
const response = await this.createScaffold({ parent });
75+
const data = await this.createScaffold({ parent });
7676

77-
if (!parent) return;
78-
await this.setMasterTemplate(parent.unique);
79-
return response;
77+
if (data) {
78+
if (!parent) return;
79+
await this.setMasterTemplate(parent.unique);
80+
}
81+
return data;
8082
}
8183

8284
setName(value: string) {

0 commit comments

Comments
 (0)