FIX: Update review settings. (#11125)

We didn't update review settings even if the UI says it was successfully saved. After #11097, we started to clone each setting and store the changes there instead, but we still use the original objects when we perform the save action.
This commit is contained in:
Roman Rizzi 2020-11-04 22:26:59 -03:00 committed by GitHub
parent d778d99b55
commit fa12302e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export default Controller.extend({
actions: {
save() {
let priorities = {};
this.get("settings.reviewable_score_types").forEach((st) => {
this.scoreTypes.forEach((st) => {
priorities[st.id] = parseFloat(st.reviewable_priority);
});