Skip to content
Permalink
Browse files

Revert introduced bug

  • Loading branch information
richturner committed Dec 19, 2019
1 parent b4ef5d1 commit 551a68eebf7e54c9700d7d404b94f7479b3d0603
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/component/or-attribute-input/src/index.ts
@@ -35,7 +35,7 @@ export function getAttributeValueTemplate(
let valueDescriptor: AttributeValueDescriptor | undefined;

attributeDescriptor = AssetModelUtil.getAttributeDescriptorFromAsset(attribute.name!, assetType);
valueDescriptor = AssetModelUtil.getAttributeValueDescriptorFromAsset(attributeDescriptor && attributeDescriptor.valueDescriptor ? attributeDescriptor.valueDescriptor.name : attribute && attribute.type ? attribute.type.name : undefined, assetType, attribute.name);
valueDescriptor = AssetModelUtil.getAttributeValueDescriptorFromAsset(attributeDescriptor && attributeDescriptor.valueDescriptor ? attributeDescriptor.valueDescriptor.name : attribute ? attribute.type as string : undefined, assetType, attribute.name);

if (customProvider) {
template = customProvider(assetType, attribute, attributeDescriptor, valueDescriptor, (newValue: any) => valueChangedCallback(newValue), readonly, disabled);

0 comments on commit 551a68e

Please sign in to comment.
You can’t perform that action at this time.