Skip to content

Commit

Permalink
Merge pull request #18190 from nnecec/master
Browse files Browse the repository at this point in the history
fix(Cascader): check if options exists before use options.length
  • Loading branch information
afc163 committed Aug 9, 2019
2 parents 8163c98 + 82ca392 commit 03189b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cascader/index.tsx
Expand Up @@ -496,7 +496,7 @@ class Cascader extends React.Component<CascaderProps, CascaderState> {
]);

let { options } = props;
if (options.length > 0) {
if (options && options.length > 0) {
if (state.inputValue) {
options = this.generateFilteredOptions(prefixCls, renderEmpty);
}
Expand Down

0 comments on commit 03189b3

Please sign in to comment.