Explorar o código

图表数据视图设置展示列不能添加到展示bug

zhuth %!s(int64=6) %!d(string=hai) anos
pai
achega
90f1510972
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}
             >
                 <Transfer
-                    dataSource={allColumns}
+                    dataSource={allColumns.map((c, i) => ({...c, key: i}))}
                     showSearch
                     filterOption={(inputValue, option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
                     listStyle={{