From 94202920f8df60a4affcc3189c5438ae1715b946 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 30 Apr 2023 17:45:27 -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 f65474413..29b767662 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -140,7 +140,7 @@ export default class Collection extends ParanoidModel { @action updateDocument(document: Pick) { if (!this.documents) { - throw new Error("Collection documents not loaded"); + return; } const travelNodes = (nodes: NavigationNode[]) =>