From e80e42f1c44f17ed3c33d240d03bb42b7d369237 Mon Sep 17 00:00:00 2001 From: Lee Kelleher Date: Tue, 23 Jul 2024 08:09:17 +0100 Subject: [PATCH] Bugfix: Data Type selection for Property Editors without schema in manifests (#2132) Fixes Data Type selection for Property Editors without schema defined in the manifests Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> --- .../data-type/workspace/data-type-workspace.context.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts index b5182fd07e..4442f73ec6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts @@ -139,7 +139,9 @@ export class UmbDataTypeWorkspaceContext // if the property editor ui alias is not set, we use the default alias from the schema if (propertyEditorUiAlias === null) { await this.#observePropertyEditorSchemaAlias(); - this.setPropertyEditorUiAlias(this.#propertyEditorSchemaConfigDefaultUIAlias!); + if (this.#propertyEditorSchemaConfigDefaultUIAlias !== null) { + this.setPropertyEditorUiAlias(this.#propertyEditorSchemaConfigDefaultUIAlias); + } } else { await this.#setPropertyEditorUIConfig(propertyEditorUiAlias); this.setPropertyEditorSchemaAlias(this.#propertyEditorUISettingsSchemaAlias!);