Преглед изворни кода

图表数据视图展示列设置添加到显示BUG

zhuth пре 6 година
родитељ
комит
ebf896940b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/chartDesigner/sections/displayColumnBox.jsx

+ 1 - 1
src/components/chartDesigner/sections/displayColumnBox.jsx

@@ -79,7 +79,7 @@ class DisplayColumnBox extends React.Component {
                 destroyOnClose={true}
                 destroyOnClose={true}
             >
             >
                 <Transfer
                 <Transfer
-                    dataSource={allColumns.map((c, i) => ({...c, key: i}))}
+                    dataSource={allColumns.map(c => ({...c, key: c.name}))}
                     showSearch
                     showSearch
                     filterOption={(inputValue, option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
                     filterOption={(inputValue, option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
                     listStyle={{
                     listStyle={{