Browse Source

Minor change, making sure each link is definitely unique by combining each of its three unique properties into a uniqueness hash, was missing one of the components.

pull/1174/head
mike12345567 5 years ago
parent
commit
edbef7ec97
  1. 2
      packages/server/src/db/linkedRows/index.js

2
packages/server/src/db/linkedRows/index.js

@ -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"
)
}

Loading…
Cancel
Save