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``; } }