1
0
Fork 0
mirror of synced 2024-06-02 10:34:40 +12:00

Fixing an issue which meant validation would consider datasources invalid despite the configuration being valid - #8510

This commit is contained in:
mike12345567 2022-11-03 17:47:33 +00:00
parent b8253ce37b
commit 228478a530

View file

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