Skip to content
Snippets Groups Projects
Commit 8dd6e821 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-7594 : Grid - fix column reorder logic

parent a399aded
No related branches found
No related tags found
No related merge requests found
......@@ -237,9 +237,9 @@ class Grid extends React.Component {
let targetIndex = _.findIndex(columns, ['field', targetField])
if (sourceIndex !== -1 && targetIndex !== -1) {
let temp = columns[sourceIndex]
columns[sourceIndex] = columns[targetIndex]
columns[targetIndex] = temp
let source = columns[sourceIndex]
columns.splice(sourceIndex, 1)
columns.splice(targetIndex, 0, source)
}
this.setState(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment