Commit 8464faa7 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'Fix-user-list-selection-is-not-in-sync-with-UI' into 'master'

Fix user list selection is not in sync with UI

See merge request gitlab-org/gitlab!75928
parents fca86eff 6bd6e91f
......@@ -142,7 +142,14 @@ export default {
return !this.$options.rolloutPercentageRegex.test(percentage);
}),
onFormStrategyChange(strategy, index) {
const currentUserListId = this.filteredStrategies[index]?.userList?.id;
const newUserListId = strategy?.userList?.id;
Object.assign(this.filteredStrategies[index], strategy);
if (currentUserListId !== newUserListId) {
this.formStrategies = [...this.formStrategies];
}
},
},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment