no need for fall back

This commit is contained in:
Nathan Woulfe
2023-05-17 13:39:26 +10:00
parent 13d006efe7
commit 1f9f2b1896

View File

@@ -93,7 +93,7 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
this._dataTypeObserver = this.observe(
await this._dataTypeRepository.byId(dataTypeId),
(dataType) => {
this._dataTypeData = new UmbDataTypePropertyCollection(dataType?.values || []);
this._dataTypeData = new UmbDataTypePropertyCollection(dataType?.values);
this._propertyEditorUiAlias = dataType?.propertyEditorUiAlias || undefined;
},
'observeDataType'