From aebd6269547c01629cc6b92a643a9fbd38870145 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 4 May 2023 20:30:10 -0400 Subject: [PATCH] fix: Error receiving document update for non-preloaded collection --- app/models/Collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {