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 74a0ab8164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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