Merge pull request #1174 from Budibase/bug/relationship-uniqueness

Relationship fix
This commit is contained in:
Michael Drury 2021-02-24 14:13:21 +00:00 committed by GitHub
commit e889f8d2ad
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@
if (production) {
return `${appUrl}/${uri}`
} else {
return `${window.location.origin}/${uri}`
}
}

View File

@ -51,7 +51,7 @@ async function getLinksForRows(appId, rows) {
return getUniqueByProp(
responses
// create a unique ID which we can use for getting only unique ones
.map(el => ({ ...el, unique: el.id + el.fieldName })),
.map(el => ({ ...el, unique: el.id + el.thisId + el.fieldName })),
"unique"
)
}