Skip to content

Commit

Permalink
fix gray publish refresh item status(apolloconfig#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebZYC committed Dec 4, 2021
1 parent 0a76c8b commit f980898
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ function releaseModalDirective($translate, toastr, AppUtil, EventManager, Releas
scope.releaseBtnDisabled = false;

//refresh item status
scope.toReleaseNamespace.branchItems.forEach(function (item, index) {
for (let index = 0; index < scope.toReleaseNamespace.branchItems.length; index++) {
const item = scope.toReleaseNamespace.branchItems[index];
if (item.isDeleted) {
scope.toReleaseNamespace.branchItems.splice(index, 1);
index--;
} else {
item.isModified = false;
}
});
}

//reset namespace status
scope.toReleaseNamespace.itemModifiedCnt = 0;
scope.toReleaseNamespace.lockOwner = undefined;
Expand Down

0 comments on commit f980898

Please sign in to comment.