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

Merge pull request #715 from smiclea/fix-details

Fix IDs displayed instead of names in details page
Daniel Vincze 3 лет назад
Родитель
Сommit
43cebb10bf
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      src/components/modules/TransferModule/MainDetails/MainDetails.tsx

+ 1 - 8
src/components/modules/TransferModule/MainDetails/MainDetails.tsx

@@ -33,7 +33,6 @@ import fieldHelper from '@src/@types/Field'
 import { ThemePalette, ThemeProps } from '@src/components/Theme'
 import DateUtils from '@src/utils/DateUtils'
 import LabelDictionary from '@src/utils/LabelDictionary'
-import { OptionsSchemaPlugin } from '@src/plugins'
 
 import { TransferItem } from '@src/@types/MainItem'
 import { MinionPool } from '@src/@types/MinionPool'
@@ -203,8 +202,6 @@ class MainDetails extends React.Component<Props, State> {
     }
 
     let properties: any[] = []
-    const plugin = endpoint && OptionsSchemaPlugin.for(endpoint.type)
-    const migrationImageMapFieldName = plugin && plugin.migrationImageMapFieldName
     let dictionaryKey = ''
     if (endpoint) {
       dictionaryKey = `${endpoint.type}-${type}`
@@ -224,13 +221,9 @@ class MainDetails extends React.Component<Props, State> {
           if (p === 'disk_mappings' || p === 'backend_mappings') {
             return null
           }
-          let fieldName = pn
-          if (migrationImageMapFieldName && fieldName === migrationImageMapFieldName) {
-            fieldName = p
-          }
           return {
             label: `${label} - ${LabelDictionary.get(p)}`,
-            value: getValue(fieldName, value[p]),
+            value: getValue(p, value[p]),
           }
         }))
       } else {