1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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.

This commit is contained in:
mike12345567 2021-02-24 13:55:48 +00:00
parent 2520118817
commit 8f9ea1cd8a

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