mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:31:44 +08:00
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:
parent
88c8e17c16
commit
415c4fa72a
|
@ -111,7 +111,7 @@ export default Controller.extend({
|
|||
if (newList.length === 0) {
|
||||
this.refreshModel();
|
||||
} else {
|
||||
this.set("reviewables", newList);
|
||||
this.reviewables.setObjects(newList);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user