pagination warning fix

This commit is contained in:
Yuri Kuznetsov
2024-03-24 17:02:17 +02:00
parent 7297e0eb83
commit 24e5cd67dd
+8 -1
View File
@@ -58,7 +58,14 @@ class RecordListPagination extends View {
}
setup() {
this.listenTo(this.collection, 'sync', () => this.reRender());
this.listenTo(this.collection, 'sync', () => {
if (!this.element) {
// A hack. Prevents warnings in console.
return;
}
this.reRender();
});
}
}