Skip to content

Commit

Permalink
fix: issue reported by sonar cloud. use forEach instead of map (argop…
Browse files Browse the repository at this point in the history
…roj#12250)

Signed-off-by: Alex Eftimie <[email protected]>
  • Loading branch information
alexef authored Feb 1, 2023
1 parent 3524128 commit 048902a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/components/paginate/paginate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function Paginate<T>({page, onPageChange, children, data, emptyState, pre
if (sortOption) {
sortOptions
.filter(o => o.title === sortOption)
.map(so => {
.forEach(so => {
data.sort(so.compare);
});
}
Expand Down

0 comments on commit 048902a

Please sign in to comment.