cleanup
This commit is contained in:
@@ -69,7 +69,6 @@ export class UmbRelationTypeRepository
|
||||
}
|
||||
|
||||
const { data, error } = await this.#detailDataSource.readRelations(id);
|
||||
debugger;
|
||||
|
||||
return { data, error };
|
||||
}
|
||||
|
||||
@@ -24,10 +24,6 @@ export class UmbRelationTypeWorkspaceContext
|
||||
async load(id: string) {
|
||||
const { data } = await this.repository.requestById(id);
|
||||
|
||||
const { data: relations } = await this.repository.requestRelationsById(id);
|
||||
|
||||
debugger;
|
||||
|
||||
if (data) {
|
||||
this.setIsNew(false);
|
||||
this.#data.update(data);
|
||||
@@ -41,6 +37,11 @@ export class UmbRelationTypeWorkspaceContext
|
||||
this.#data.next(data);
|
||||
}
|
||||
|
||||
async getRelations() {
|
||||
//TODO: How do we test this?
|
||||
return await this.repository.requestRelationsById(this.getEntityId());
|
||||
}
|
||||
|
||||
getData() {
|
||||
return this.#data.getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user