Skip to content

Commit 0efcfd6

Browse files
committed
Default undefined label to ''. Fixes #39.
1 parent 94888da commit 0efcfd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/components/x-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export default Component.extend(Evented, {
301301
},
302302

303303
setOption(selection, selected, notify) {
304-
let { option, value, label } = this.retrieveOption(selection);
304+
let { option, value, label = '' } = this.retrieveOption(selection);
305305

306306
if (this.get('multiple')) {
307307
label = '';

0 commit comments

Comments
 (0)