await data

This commit is contained in:
Jesper Møller Jensen
2023-11-08 16:48:23 +13:00
parent 840ea29c39
commit 930bc39c52

View File

@@ -50,7 +50,8 @@ export class UmbMediaTypeWorkspaceContext
}
async create() {
const { data } = await this.repository.createScaffold();
this.#getDataPromise = this.repository.createScaffold();
const { data } = await this.#getDataPromise;
if (!data) return;
this.setIsNew(true);