Fixed kanban board rearranging issue (#537)

This commit is contained in:
Harshil Sharma 2021-06-07 18:54:20 +05:30 committed by GitHub
parent 0fa9028931
commit dbfeeed8ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}