fix: Error receiving document update for non-preloaded collection

This commit is contained in:
Tom Moor
2023-04-30 17:45:27 -04:00
parent f2ea8daf65
commit 94202920f8

View File

@@ -140,7 +140,7 @@ export default class Collection extends ParanoidModel {
@action
updateDocument(document: Pick<Document, "id" | "title" | "url">) {
if (!this.documents) {
throw new Error("Collection documents not loaded");
return;
}
const travelNodes = (nodes: NavigationNode[]) =>