diff --git a/modules/backend/assets/js/october.triggerapi.js b/modules/backend/assets/js/october.triggerapi.js index c5baf837f..608d7f903 100644 --- a/modules/backend/assets/js/october.triggerapi.js +++ b/modules/backend/assets/js/october.triggerapi.js @@ -50,10 +50,8 @@ if (this.options.triggerCondition.indexOf('value') == 0) { var match = this.options.triggerCondition.match(/[^[\]]+(?=])/g) - if (match) { - this.triggerConditionValue = match - this.triggerCondition = 'value' - } + this.triggerCondition = 'value' + this.triggerConditionValue = (match) ? match : "" } if (this.triggerCondition == 'checked' || this.triggerCondition == 'value')