Skip to content

Commit

Permalink
add createFdmKey for uniqBy
Browse files Browse the repository at this point in the history
  • Loading branch information
danpriori committed Aug 28, 2024
1 parent 9a85ccf commit 2b9a892
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export function useAll3dDirectConnectionsWithProperties(
});

const uniqueViews = uniqBy(instancesViews, (item) => {
return `${item?.space}/${item?.externalId}`;
if (item === undefined) {
return '';
}
const fdmKey = createFdmKey(item?.space, item?.externalId);
return fdmKey;
});

const instancesDataChunks = chunk(instancesData, 1000);
Expand Down

0 comments on commit 2b9a892

Please sign in to comment.