Skip to content

Commit

Permalink
fix(backoffice-v2): fixed filter condition (#2494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy authored Jul 1, 2024
1 parent 21c7be8 commit 2549b85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const reportAdapter = {
src: data?.imageUrl,
link: data?.adsInformation?.link,
}))
.filter(Boolean),
.filter(({ src }) => !!src),
relatedAdsImages: Object.values(data?.report?.data?.socialMedia?.ads ?? {})
.map(data => ({
src: data?.pickedAd?.imageUrl,
Expand Down Expand Up @@ -194,7 +194,7 @@ export const reportAdapter = {
src: data?.imageUrl,
link: data?.adsInformation?.link,
}))
.filter(Boolean),
.filter(({ src }) => !!src),
relatedAdsImages: Object.values(data?.report?.data?.socialMedia?.ads ?? {})
.map(data => ({
src: data?.pickedAd?.imageUrl,
Expand Down

0 comments on commit 2549b85

Please sign in to comment.