Use tryExecute for delete API call

Replaces direct await of #delete with tryExecute to improve error handling in the delete method of UmbManagementApiDetailDataRequestManager.
This commit is contained in:
Mads Rasmussen
2025-10-22 12:54:47 +02:00
committed by Niels Lyngsø
parent 4a65f56d9d
commit 194fee7c91

View File

@@ -125,7 +125,7 @@ export class UmbManagementApiDetailDataRequestManager<
}
async delete(id: string): Promise<UmbApiWithErrorResponse> {
const { error } = await this.#delete(id);
const { error } = await tryExecute(this, this.#delete(id));
// Only update the cache when we are connected to the server events
if (this.#isConnectedToServerEvents && !error) {