Skip to content

Commit

Permalink
Merge pull request #837 from factly/fix/selector
Browse files Browse the repository at this point in the history
add null check for selector component options
  • Loading branch information
vsumit89 authored Jan 17, 2023
2 parents 16a0578 + 6f9bbc2 commit 8252751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studio/src/components/Selector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ function Selector({
autoClearSearchValue={true}
>
{details
.filter((item) => !invalidOptions.includes(item.id))
.filter((item) => !invalidOptions.includes(item?.id))
.map((item) => (
<Select.Option value={item.id} key={entity + item.id}>
{item[display] ? item[display] : item['email'] ? item['email'] : null}
<Select.Option value={item?.id} key={entity + item?.id}>
{item?.[display] ? item?.[display] : item?.['email'] ? item?.['email'] : null}
</Select.Option>
))}
</Select>
Expand Down

0 comments on commit 8252751

Please sign in to comment.