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!);