Kaynağa Gözat

Use dictionary values for string enums

If a field has string enumerations (no objects enumerations with 'id'
and 'name), use the dictionary for their label.
Sergiu Miclea 8 yıl önce
ebeveyn
işleme
54724e21bb

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

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