Update entity-detail-workspace-base.ts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user