Merge pull request #8518 from Budibase/fix/8510

Merging 8510 to master
This commit is contained in:
Michael Drury 2022-11-04 10:45:42 +00:00 committed by GitHub
commit 2253d5c080
1 changed files with 4 additions and 1 deletions

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