From 10a9b8034a35f4dae8e48e4eb3ce4ee7c86199f2 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 9 Feb 2021 14:50:02 +0000 Subject: [PATCH] Fix relationships not being saved for new rows --- packages/server/src/db/linkedRows/LinkController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/db/linkedRows/LinkController.js b/packages/server/src/db/linkedRows/LinkController.js index 5102e50f02..dd55ed898f 100644 --- a/packages/server/src/db/linkedRows/LinkController.js +++ b/packages/server/src/db/linkedRows/LinkController.js @@ -140,7 +140,7 @@ class LinkController { if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) { // first check the doc we're linking to exists try { - await Promise.all([this._db.get(linkId), this._db.get(row._id)]) + await this._db.get(linkId) } catch (err) { // skip links that don't exist continue