Fixed kanban board rearranging issue (#537)
This commit is contained in:
parent
0fa9028931
commit
dbfeeed8ed
1 changed files with 2 additions and 1 deletions
|
@ -228,7 +228,8 @@ class Kanban extends React.Component<Props, State> {
|
|||
const srcIndex = visibleOptionIds.indexOf(dstOption.id)
|
||||
const destIndex = visibleOptionIds.indexOf(option.id)
|
||||
|
||||
visibleOptionIds.splice(destIndex, 0, visibleOptionIds.splice(srcIndex, 1)[0])
|
||||
visibleOptionIds[srcIndex] = option.id
|
||||
visibleOptionIds[destIndex] = dstOption.id
|
||||
|
||||
await mutator.changeViewVisibleOptionIds(activeView, visibleOptionIds)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue