From 9d2da38fac4b2c0f49953ffd400e511af35b8310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Mon, 20 Mar 2023 14:45:43 +1300 Subject: [PATCH] fix edit view --- ...type-workspace-view-relation-type.element.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts index e26888d083..ca34e9867a 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts @@ -40,6 +40,9 @@ export class UmbRelationTypeWorkspaceViewRelationTypeElement extends UmbLitEleme this.observe(this.#workspaceContext.data, (relationType) => { if (!relationType) return; + + console.log('relationType', relationType); + this._relationType = relationType as RelationTypeBaseModel; }); } @@ -63,7 +66,7 @@ export class UmbRelationTypeWorkspaceViewRelationTypeElement extends UmbLitEleme + slot="editor"> @@ -72,7 +75,7 @@ export class UmbRelationTypeWorkspaceViewRelationTypeElement extends UmbLitEleme ${this.#renderChildProperty()} @@ -81,17 +84,15 @@ export class UmbRelationTypeWorkspaceViewRelationTypeElement extends UmbLitEleme } #renderParentProperty() { - if (this._relationType?.key) - return html`
${this._relationType.parentObjectTypeName}
`; + if (this._relationType?.key) return html`
${this._relationType.parentObjectTypeName}
`; - return html``; + return html``; } #renderChildProperty() { - if (this._relationType?.key) - return html`
${this._relationType.parentObjectTypeName}
`; + if (this._relationType?.key) return html`
${this._relationType.parentObjectTypeName}
`; - return html``; + return html``; } }