1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Merge branch 'form-builder' of github.com:Budibase/budibase into form-builder

This commit is contained in:
Andrew Kingston 2021-02-09 14:02:05 +00:00
commit 532d568e62

View file

@ -138,6 +138,13 @@ class LinkController {
// iterate through the link IDs in the row field, see if any don't exist already
for (let linkId of rowField) {
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)])
} catch (err) {
// skip links that don't exist
continue
}
operations.push(
new LinkDocument(
table._id,