Fixing issue with data import error not invalidating modals.
This commit is contained in:
parent
b585fe9642
commit
b9b79f0af6
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue