fix: Error receiving document update for non-preloaded collection

This commit is contained in:
Tom Moor
2023-05-04 20:30:10 -04:00
parent 9942bbee3e
commit aebd626954

View File

@@ -165,7 +165,7 @@ export default class Collection extends ParanoidModel {
@action @action
removeDocument(documentId: string) { removeDocument(documentId: string) {
if (!this.documents) { if (!this.documents) {
throw new Error("Collection documents not loaded"); return;
} }
this.documents = this.documents.filter(function f(node): boolean { this.documents = this.documents.filter(function f(node): boolean {