Browse Source
Merge pull request #1174 from Budibase/bug/relationship-uniqueness
Relationship fix
gh-pages
Michael Drury
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
2 deletions
-
packages/builder/src/components/automation/Shared/WebhookDisplay.svelte
-
packages/server/src/db/linkedRows/index.js
|
|
@ -13,7 +13,6 @@ |
|
|
if (production) { |
|
|
if (production) { |
|
|
return `${appUrl}/${uri}` |
|
|
return `${appUrl}/${uri}` |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
return `${window.location.origin}/${uri}` |
|
|
return `${window.location.origin}/${uri}` |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -51,7 +51,7 @@ async function getLinksForRows(appId, rows) { |
|
|
return getUniqueByProp( |
|
|
return getUniqueByProp( |
|
|
responses |
|
|
responses |
|
|
// create a unique ID which we can use for getting only unique ones
|
|
|
// 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" |
|
|
"unique" |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|