Fallback to proper default values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
460ea6d6ce
commit
d1a81a0225
|
@ -121,6 +121,7 @@ export default {
|
||||||
this.deleteVisible = false
|
this.deleteVisible = false
|
||||||
},
|
},
|
||||||
validate() {
|
validate() {
|
||||||
|
this.valid = true
|
||||||
if (this.currentOption && this.currentOption.validate) {
|
if (this.currentOption && this.currentOption.validate) {
|
||||||
this.valid = !!this.currentOption.validate(this.check)
|
this.valid = !!this.currentOption.validate(this.check)
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
type="button"
|
type="button"
|
||||||
class="check--add"
|
class="check--add"
|
||||||
value="Add a new filter"
|
value="Add a new filter"
|
||||||
@click="rule.checks.push({class: null, operator: null, value: null})">
|
@click="rule.checks.push({class: null, operator: null, value: ''})">
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flow-icon icon-confirm" />
|
<div class="flow-icon icon-confirm" />
|
||||||
|
|
Loading…
Reference in New Issue