Fix Table Creation With No Import (#9373)
This commit is contained in:
parent
dea4dd1de7
commit
cde15b0b0b
|
@ -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 = [
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue