Skip to content

Commit

Permalink
fix(components): fix addOption method without a label
Browse files Browse the repository at this point in the history
feature/select-with-image
  • Loading branch information
samwx committed Nov 20, 2019
1 parent 749ccff commit 37c97e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/blipSelect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class BlipSelect extends Component {
$event: { newOption },
} = emitter

if (newOption.value) {
if (newOption.value || newOption.label) {
const newOptions = this.props.options.concat(newOption)
this.props.options = newOptions

Expand Down

0 comments on commit 37c97e2

Please sign in to comment.