Fixing issue with data import error not invalidating modals.

This commit is contained in:
mike12345567 2021-11-25 16:41:19 +00:00
parent b585fe9642
commit b9b79f0af6
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@
let fields = []
let hasValidated = false
$: valid = !schema || fields.every(column => schema[column].success)
$: valid =
!schema ||
(fields.every(column => schema[column].success) &&
Object.keys(schema).length > 0)
$: dataImport = {
valid,
schema: buildTableSchema(schema),