From 163e6ee808b7db32e5b026fea58b0ff3d8a5b32c Mon Sep 17 00:00:00 2001 From: Michel Tank Date: Wed, 13 Feb 2019 07:09:20 -0200 Subject: [PATCH 1/2] Bug fix in picker ios, sometimes selectOption is null causing 'undefined is not an object' --- lib/templates/bootstrap/select.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/bootstrap/select.ios.js b/lib/templates/bootstrap/select.ios.js index 56385d1d..aae44c73 100644 --- a/lib/templates/bootstrap/select.ios.js +++ b/lib/templates/bootstrap/select.ios.js @@ -107,7 +107,7 @@ class CollapsiblePickerIOS extends React.Component { ]} onPress={this.togglePicker} > - {selectedOption.text} + {selectedOption ? selectedOption.text : ''} Date: Tue, 9 Apr 2019 07:00:24 -0300 Subject: [PATCH 2/2] Fixed lint error --- lib/templates/bootstrap/select.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/bootstrap/select.ios.js b/lib/templates/bootstrap/select.ios.js index aae44c73..488b6e9f 100644 --- a/lib/templates/bootstrap/select.ios.js +++ b/lib/templates/bootstrap/select.ios.js @@ -107,7 +107,7 @@ class CollapsiblePickerIOS extends React.Component { ]} onPress={this.togglePicker} > - {selectedOption ? selectedOption.text : ''} + {selectedOption ? selectedOption.text : ""}