Explorar el Código

Merge pull request #239 from smiclea/fix-dropdown

Fix '[object object]' label in dropdown
Dorin Paslaru hace 8 años
padre
commit
ea0b1072b6
Se han modificado 1 ficheros con 1 adiciones y 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