1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Fix relationships not being saved for new rows

This commit is contained in:
Andrew Kingston 2021-02-09 14:50:02 +00:00
parent c635956e30
commit 10a9b8034a

View file

@ -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