Skip to content

Commit

Permalink
[form-builder] Fix crash when rendering unknown value warning for obj…
Browse files Browse the repository at this point in the history
…ect/arrays
  • Loading branch information
rexxars authored and mariuslundgard committed Jan 26, 2021
1 parent 6e50733 commit f009140
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class ArrayOfPrimitivesInput extends React.PureComponent<Props> {
onClick={() => this.handleRemoveItem(value.findIndex((v) => v === item.value))}
color="danger"
>
Unset {item.value}
Unset {['string', 'number'].includes(typeof item.value) ? item.value : ''}
</DefaultButton>
)}
</div>
Expand Down

1 comment on commit f009140

@vercel
Copy link

@vercel vercel bot commented on f009140 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.