Fix relationships not being saved for new rows
This commit is contained in:
parent
33b8005493
commit
9b21eb78b6
|
@ -140,7 +140,7 @@ class LinkController {
|
||||||
if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) {
|
if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) {
|
||||||
// first check the doc we're linking to exists
|
// first check the doc we're linking to exists
|
||||||
try {
|
try {
|
||||||
await Promise.all([this._db.get(linkId), this._db.get(row._id)])
|
await this._db.get(linkId)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// skip links that don't exist
|
// skip links that don't exist
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue