Skip to content

Commit

Permalink
fix: resource filter crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Dec 3, 2021
1 parent 9cd7735 commit 15c19b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/atoms/KeyValueInput/KeyValueInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ function KeyValueInput(props: KeyValueInputProps) {
<Select.Option key={ANY_VALUE} value={ANY_VALUE}>
{ANY_VALUE}
</Select.Option>
{data[entry.key].map((value: string) => (
<Select.Option key={value} value={value}>
{value}
</Select.Option>
))}
{data[entry.key] &&
data[entry.key].map((value: string) => (
<Select.Option key={value} value={value}>
{value}
</Select.Option>
))}
</Select>
)}
<StyledRemoveButton
Expand Down

0 comments on commit 15c19b0

Please sign in to comment.