Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-07-12 14:05:24 +08:00
parent 29eb9dda59
commit 7c8cd9cfdd
1 changed files with 1 additions and 2 deletions

View File

@ -618,8 +618,7 @@ export default Ember.Controller.extend(BufferedContent, {
},
selectBelow(post) {
const postStream = this.get("model.postStream");
const stream = [...postStream.get("stream")];
const stream = [...this.get("model.postStream.stream")];
const below = stream.slice(stream.indexOf(post.id));
this.get("selectedPostIds").pushObjects(below);
this.appEvents.trigger("post-stream:refresh", { force: true });