commit
74a0ab8164
|
@ -44,7 +44,10 @@
|
||||||
// run the validation whenever the config changes
|
// run the validation whenever the config changes
|
||||||
$: validation.check(config)
|
$: validation.check(config)
|
||||||
// dispatch the validation result
|
// dispatch the validation result
|
||||||
$: dispatch("valid", Object.keys($validation.errors).length === 0)
|
$: dispatch(
|
||||||
|
"valid",
|
||||||
|
Object.values($validation.errors).filter(val => val != null).length === 0
|
||||||
|
)
|
||||||
|
|
||||||
let addButton
|
let addButton
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue