Browse Source

Fix array type fields using label dictionary

Fields of type array should not use label dictionary for their values,
consistent with other type of fields that are represented with a
dropdown (i.e. type 'string' with 'enum' property).
Sergiu Miclea 6 years ago
parent
commit
0ffaf16a78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/molecules/FieldInput/FieldInput.jsx

+ 1 - 1
src/components/molecules/FieldInput/FieldInput.jsx

@@ -242,7 +242,7 @@ class FieldInput extends React.Component<Props> {
       }
       }
 
 
       return {
       return {
-        label: typeof e === 'string' ? LabelDictionary.get(e) : e.name || e.label,
+        label: typeof e === 'string' ? e : e.name || e.label,
         value: typeof e === 'string' ? e : e.id || e.value,
         value: typeof e === 'string' ? e : e.id || e.value,
       }
       }
     })
     })