From cda8ede2c6ea70cf2550870457c03a6533f8348d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Wed, 3 Jan 2024 19:10:06 +1300 Subject: [PATCH] cleanup --- .../repository/relation-type.repository.ts | 1 - .../workspace/relation-type-workspace.context.ts | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/repository/relation-type.repository.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/repository/relation-type.repository.ts index 3ebe61d241..2b9af764ed 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/repository/relation-type.repository.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/repository/relation-type.repository.ts @@ -69,7 +69,6 @@ export class UmbRelationTypeRepository } const { data, error } = await this.#detailDataSource.readRelations(id); - debugger; return { data, error }; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.context.ts index 299c36a583..82ef1403d0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.context.ts @@ -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(); }