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>
This commit is contained in:
Lee Kelleher
2024-07-23 08:09:17 +01:00
committed by GitHub
parent c361812414
commit e80e42f1c4

View File

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