Fallback to proper default values

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-01-09 08:45:41 +01:00
parent 460ea6d6ce
commit d1a81a0225
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 1 deletions

View File

@ -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)
} }

View File

@ -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" />