We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa423a commit 501e3f0Copy full SHA for 501e3f0
src/packages/templating/templates/workspace/template-workspace.context.ts
@@ -72,11 +72,13 @@ export class UmbTemplateWorkspaceContext
72
}
73
74
async create(parent: any) {
75
- const response = await this.createScaffold({ parent });
+ const data = await this.createScaffold({ parent });
76
77
- if (!parent) return;
78
- await this.setMasterTemplate(parent.unique);
79
- return response;
+ if (data) {
+ if (!parent) return;
+ await this.setMasterTemplate(parent.unique);
80
+ }
81
+ return data;
82
83
84
setName(value: string) {
0 commit comments