|
@@ -48,7 +48,7 @@ class DisplayColumnBox extends React.Component {
|
|
|
|
|
|
|
|
handleChange = (targetKeys, direction, moveKeys) => {
|
|
handleChange = (targetKeys, direction, moveKeys) => {
|
|
|
const { allColumns } = this.props;
|
|
const { allColumns } = this.props;
|
|
|
- let targetColumns = allColumns.filter(c => targetKeys.indexOf(c.name) !== -1);
|
|
|
|
|
|
|
+ let targetColumns = targetKeys.map(k => allColumns.find(c => c.name === k));
|
|
|
this.setState({ targetColumns });
|
|
this.setState({ targetColumns });
|
|
|
}
|
|
}
|
|
|
|
|
|