Skip to content

Commit

Permalink
fix(Designer): Fixed issue where some service provider operations wou…
Browse files Browse the repository at this point in the history
…ld not appear in search / browse (#4345)

* Added extra data to prevent search from removing operations with the same id

* Removed console logs
  • Loading branch information
rllyy97 committed Mar 11, 2024
1 parent 69e912e commit 96d2cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,5 @@ export const RecommendationPanelContext = (props: CommonPanelProps) => {
};

const joinAndDeduplicateById = (arr1: DiscoveryOpArray, arr2: DiscoveryOpArray) => [
...new Map([...arr1, ...arr2].map((v) => [v.id, v])).values(),
...new Map([...arr1, ...arr2].map((v) => [`${v?.properties?.api?.id}/${v.id}`, v])).values(),
];

0 comments on commit 96d2cf5

Please sign in to comment.