Update entity-detail-workspace-base.ts

This commit is contained in:
Mads Rasmussen
2024-09-25 13:42:17 +02:00
parent e8861d197a
commit 9d4314de08

View File

@@ -117,11 +117,6 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
return data;
}
async delete(unique: string) {
await this.#init;
await this._detailRepository!.delete(unique);
}
async submit() {
await this.#init;
const currentData = this._data.getCurrent();
@@ -169,6 +164,11 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
}
}
async delete(unique: string) {
await this.#init;
await this._detailRepository!.delete(unique);
}
/**
* @description method to check if the workspace is about to navigate away.
* @protected