Skip to content

Commit 29830e5

Browse files
Inbal-Tishethanshar
authored andcommitted
NativePicker - bug fix
1 parent c5dc8b9 commit 29830e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/picker/NativePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class NativePicker extends BaseComponent {
2828

2929
onDone = () => {
3030
const {selectedValue, items} = this.state;
31-
_.invoke(this.props, 'onChange', selectedValue || items[0].value);
31+
_.invoke(this.props, 'onChange', selectedValue || items ? items[0].value : undefined);
3232
this.input.toggleExpandableModal(false);
3333
};
3434

0 commit comments

Comments
 (0)