Просмотр исходного кода

Merge pull request #236 from smiclea/enum-dictionary

Use dictionary values for string enums
Dorin Paslaru 8 лет назад
Родитель
Сommit
6584c74aef
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/molecules/WizardOptionsField/index.jsx

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

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