Skip to content

Commit

Permalink
Merge pull request #1341 from yaacov/using-foreach-instead-of-map-in-…
Browse files Browse the repository at this point in the history
…card-items

Using forEach instead of map as its return value is not being used
  • Loading branch information
yaacov authored Sep 30, 2024
2 parents 2825caf + fc3114e commit 0e3a67c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const createProviderCardItems = (
): Record<string, SelectableGalleryItem> => {
const providerCardItems = {};

(providers || []).map((provider) => {
(providers || []).forEach((provider) => {
const typeObj = providerTypes[provider.spec.type];

providerCardItems[provider.metadata.uid] = {
Expand Down

0 comments on commit 0e3a67c

Please sign in to comment.