Skip to content

Commit

Permalink
Chaining debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yabab-dev committed Jul 30, 2016
1 parent abb1bf9 commit 8c080d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/src/choices.js
Expand Up @@ -513,7 +513,7 @@ export class Choices {
setChoices(choices, value, label){
if(this.initialised === true) {
if(this.passedElement.type === 'select-one' || this.passedElement.type === 'select-multiple') {
if(!isType('Array', choices) || !value) return;
if(!isType('Array', choices) || !value) return this;

if(choices && choices.length) {
choices.forEach((result, index) => {
Expand Down

0 comments on commit 8c080d4

Please sign in to comment.