Explorar o código

Merge pull request #239 from smiclea/fix-dropdown

Fix '[object object]' label in dropdown
Dorin Paslaru %!s(int64=8) %!d(string=hai) anos
pai
achega
ea0b1072b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/molecules/PropertiesTable/index.jsx

+ 1 - 1
src/components/molecules/PropertiesTable/index.jsx

@@ -124,7 +124,7 @@ class PropertiesTable extends React.Component<Props> {
       ...items,
     ]
 
-    let selectedItem = items.find(i => i.value === this.props.valueCallback(prop))
+    let selectedItem = items.find(i => !i.separator && i.value === this.props.valueCallback(prop))
 
     return (
       <Dropdown