FIX: review queue scrolling is not working after take an action. (#16346)

`reject` method for `Reviewable` model is returning an array. So if we use `this.set` method to update `reviewables` attribute in controller then it replaces the model with an array of objects wrongly. This is now fixed by using the `setObjects` method of the model.
This commit is contained in:
Vinoth Kannan 2022-04-04 14:48:06 +05:30 committed by GitHub
parent 88c8e17c16
commit 415c4fa72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export default Controller.extend({
if (newList.length === 0) {
this.refreshModel();
} else {
this.set("reviewables", newList);
this.reviewables.setObjects(newList);
}
},