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 rows = []
export let schema = {} export let schema = {}
export let allValid = false export let allValid = true
export let displayColumn = null export let displayColumn = null
const typeOptions = [ const typeOptions = [

View File

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