Explorar o código

Fix '[object object]' label in dropdown

Appears when rendering for the first time OCI's 'Migration Image Map'
field in the Wizard Options page.
This error was related to the fact that the dropdown had a separator.
Sergiu Miclea %!s(int64=8) %!d(string=hai) anos
pai
achega
c006db6664
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,
       ...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 (
     return (
       <Dropdown
       <Dropdown