Skip to content

Commit 34349cf

Browse files
Measurable Ratings deselect/reselect bug
#6964
1 parent de8dccc commit 34349cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

waltz-ng/client/measurable-rating/components/edit-panel/measurable-rating-edit-panel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function controller($q,
145145
const doRatingItemSave = (rating) => {
146146
return doSave(CORE_API.MeasurableRatingStore.saveRatingItem, rating)
147147
.then(() => {
148-
const newRating = _.merge({}, vm.selected.rating, {rating});
148+
const newRating = _.find(vm.ratings, d => d.measurableId === vm.selected.measurable.id)
149149
vm.selected = Object.assign({}, vm.selected, {rating: newRating});
150150
});
151151
};
@@ -179,6 +179,8 @@ function controller($q,
179179
vm.saveInProgress = false;
180180
vm.ratings = r.data;
181181
vm.selected.rating = null;
182+
vm.selected.decommission = null;
183+
vm.selected.replacementApps = [];
182184
recalcTabs(vm.selected.measurable.categoryId);
183185
});
184186
};

0 commit comments

Comments
 (0)