mirror of https://github.com/keeweb/keeweb.git
fixed a group moving bug
This commit is contained in:
parent
797bc4820b
commit
150f258b70
|
@ -315,7 +315,7 @@ const GroupModel = MenuItemModel.extend({
|
|||
}
|
||||
let atIndex = this.parentGroup.group.groups.indexOf(this.group);
|
||||
const selfIndex = this.parentGroup.group.groups.indexOf(object.group);
|
||||
if (selfIndex < atIndex) {
|
||||
if (selfIndex >= 0 && selfIndex < atIndex) {
|
||||
atIndex--;
|
||||
}
|
||||
if (atIndex >= 0) {
|
||||
|
|
Loading…
Reference in New Issue