Explorar el Código

Merge pull request #484 from smiclea/fix-array-labels

Fix array type fields using label dictionary
Nashwan Azhari hace 6 años
padre
commit
bc62ba21bb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/molecules/FieldInput/FieldInput.jsx

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

@@ -263,7 +263,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,
       }
       }
     })
     })