Skip to content

Commit

Permalink
fix: audience preview white screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopaunov committed Dec 8, 2021
1 parent 5181604 commit b08816a
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,16 @@ const AudiencePreview = ({ audienceInput = {}, title, subHeader }) => {
label={t('ALL_PUBLISHERS')}
/>
) : (
(publishers[publishers.apply] || []).map((x, index) => (
<Chip
key={index}
variant='outlined'
size='small'
label={(JSON.parse(x) || {}).hostname}
/>
))
(publishers[publishers.apply] || []).map((x, index) => {
return (
<Chip
key={index}
variant='outlined'
size='small'
label={(JSON.parse(x || '{}') || {}).hostname}
/>
)
})
)
}
/>
Expand Down

0 comments on commit b08816a

Please sign in to comment.