Skip to content

Commit

Permalink
Fix primefaces#2496: MultiSelect null check
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Dec 7, 2021
1 parent 8461882 commit a8b8be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ export class MultiSelect extends Component {
}
else {
let visibleOptions = this.getVisibleOptions();
if (visibleOptions.length === 0) {
if (!visibleOptions || visibleOptions.length === 0) {
return false;
}

Expand Down

0 comments on commit a8b8be2

Please sign in to comment.