Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoru committed Feb 5, 2018
1 parent 35114e9 commit 75fd74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/picker/cascade_picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CascadePicker extends React.Component {

do {
columns.push(dataItem);
const selectIndex = dataItem[ selectIndexs[i] ]? selectIndexs[i]: 0;
const selectIndex = dataItem[ selectIndexs[ i ] ]? selectIndexs[ i ]: 0;
newSelectIndexs.push(selectIndex);

dataItem = Array.isArray(dataItem) && dataItem[selectIndex] && dataItem[selectIndex][datamap.sub];
Expand Down
2 changes: 1 addition & 1 deletion src/components/picker/group_picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GroupPicker extends Component {
handleClose(callback){
this.setState({ closing: true }, () => setTimeout( ()=> {
this.setState({ closing: false });
if(callback) callback();
if (callback) callback();
}, 300));
}

Expand Down

0 comments on commit 75fd74c

Please sign in to comment.