Fixing issue with data import error not invalidating modals.

This commit is contained in:
mike12345567 2021-11-25 16:41:19 +00:00
parent 7d024f285d
commit b68cd07431
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),