This commit is contained in:
Jesper Møller Jensen
2024-01-03 19:10:06 +13:00
parent 298c62eb7b
commit cda8ede2c6
2 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,6 @@ export class UmbRelationTypeRepository
}
const { data, error } = await this.#detailDataSource.readRelations(id);
debugger;
return { data, error };
}

View File

@@ -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();
}