diff --git a/src/Umbraco.Web.UI.Client/libs/data-type/data-type-property-collection.class.ts b/src/Umbraco.Web.UI.Client/libs/data-type/data-type-property-collection.class.ts index 60a77a4250..a4feb809fe 100644 --- a/src/Umbraco.Web.UI.Client/libs/data-type/data-type-property-collection.class.ts +++ b/src/Umbraco.Web.UI.Client/libs/data-type/data-type-property-collection.class.ts @@ -9,12 +9,8 @@ export class UmbDataTypePropertyCollection extends Array x.alias === alias); - } - getValueByAlias(alias: string): T | undefined { - const property = this._getByAlias(alias); + const property = this.getByAlias(alias); if (property?.value === undefined || property?.value === null) { return; @@ -24,7 +20,6 @@ export class UmbDataTypePropertyCollection extends Array x.alias === alias); } } diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/core/components/workspace-property/workspace-property.element.ts index b1b0183051..8a044e16c5 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/core/components/workspace-property/workspace-property.element.ts @@ -91,7 +91,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { * @default '' */ @property({ type: Object, attribute: false }) - public set config(value: UmbDataTypePropertyCollection) { + public set config(value: DataTypePropertyPresentationModel[]) { this._propertyContext.setConfig(value); }