Skip to content

Commit 635160d

Browse files
committed
Fix pagination not considering newly synced items
Just a computed property not being observed correctly.
1 parent de9abf4 commit 635160d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/bookmarks/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default Controller.extend({
4242
// this.set('model', []);
4343
// },
4444

45-
filteredContent: computed('filterText', 'sortedBookmarks', function() {
45+
filteredContent: computed('filterText', 'sortedBookmarks.[]', function() {
4646
this.setInitialPaginationItemCount();
4747
let filterText = this.filterText.toLowerCase();
4848

@@ -60,7 +60,7 @@ export default Controller.extend({
6060
}
6161
}),
6262

63-
paginationActive: computed('paginationItemsPerPage.[]', 'filteredContent', function() {
63+
paginationActive: computed('paginationItemsPerPage', 'filteredContent', function() {
6464
return this.filteredContent.length > this.paginationItemsPerPage;
6565
}),
6666

0 commit comments

Comments
 (0)