diff --git a/app/models/Collection.ts b/app/models/Collection.ts index 29b767662..f100a54e2 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -165,7 +165,7 @@ export default class Collection extends ParanoidModel { @action removeDocument(documentId: string) { if (!this.documents) { - throw new Error("Collection documents not loaded"); + return; } this.documents = this.documents.filter(function f(node): boolean {