From 2e3c8bf55abe928b0b8bc934a4a74f9aa840f0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Nov 2024 14:31:25 +0100 Subject: [PATCH] await request before submit gets resolved --- .../workspace/entity-detail/entity-detail-workspace-base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts b/src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts index e98b1c527a..943616355f 100644 --- a/src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts +++ b/src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts @@ -133,9 +133,9 @@ export abstract class UmbEntityDetailWorkspaceContextBase< } if (this.getIsNew()) { - this.#create(currentData); + await this.#create(currentData); } else { - this.#update(currentData); + await this.#update(currentData); } }