fix: condition close tab

This commit is contained in:
Net 2024-07-30 09:29:59 +07:00
parent 57e61cf663
commit 38618e73c6

View file

@ -69,8 +69,10 @@ function close(index: number) {
}
customerBranch.value.splice(index, 1);
console.log(index);
customerBranch.value.forEach((v, i) => {
if (!!v.branchNo && v.branchNo >= index + 1) {
if (!!v.branchNo && v.branchNo > index + 1) {
v.branchNo = v.branchNo - 1;
}
});