Fixing an issue which meant validation would consider datasources invalid despite the configuration being valid - #8510
This commit is contained in:
parent
b9caf0aef5
commit
86c90c7971
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@
|
|||
// run the validation whenever the config changes
|
||||
$: validation.check(config)
|
||||
// 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue