Fix Table Creation With No Import (#9373)

This commit is contained in:
Gerard Burns 2023-01-18 12:00:08 +00:00 committed by GitHub
parent dea4dd1de7
commit cde15b0b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
export let rows = []
export let schema = {}
export let allValid = false
export let allValid = true
export let displayColumn = null
const typeOptions = [

View File

@ -33,7 +33,7 @@
let autoColumns = getAutoColumnInformation()
let schema = {}
let rows = []
let allValid = false
let allValid = true
let displayColumn = null
function getAutoColumns() {
@ -99,7 +99,7 @@
title="Create Table"
confirmText="Create"
onConfirm={saveTable}
disabled={error || !name || !allValid}
disabled={error || !name || (rows.length && !allValid)}
>
<Input
data-cy="table-name-input"