Fixes level removal in terms list hierarchical.

This commit is contained in:
mateuswetah 2023-05-15 10:51:07 -03:00
parent d7c2100116
commit cf00e20d8f
1 changed files with 2 additions and 2 deletions

View File

@ -601,8 +601,8 @@ export default {
if ( parentTermIndex >= 0)
this.termColumns[removedTermParentColumn - 1].children[parentTermIndex].total_children = Number(this.termColumns[removedTermParentColumn].total_children);
}
this.removeLevelsAfterIndex(removedTermParentColumn);
this.removeLevelsAfterIndex(removedTermParentColumn - 1);
}
}
},