Skip to content

Commit

Permalink
Fixed consumers appearing multipe times (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elson9 committed Oct 16, 2023
1 parent 7cbd61e commit 36f38ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/workflow/consumer-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ export async function getFilteredNamespaceConsumers(
);

return accesses
.filter((acc) => acc.consumer)
.filter(
(acc, index, self) =>
acc.consumer &&
index === self.findIndex((t) => t.consumer.id === acc.consumer.id)
)
.map((acc) => {
return {
id: acc.consumer.id,
Expand Down

0 comments on commit 36f38ba

Please sign in to comment.