Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export const Column = ({
</Form.Item>
<Form.Item name={`schemaColumns.${index}.type`} label="Type">
<Form.Select
disabled={isEditLocked}
defaultValue={column.type}
name={`schemaColumns.${index}.type`}
options={supportedColumnTypes}
Expand All @@ -122,13 +121,13 @@ export const Column = ({
<IconWithTooltip
icon={
<Button
disabled={type !== "TIMESTAMP" || isEditLocked}
disabled={column.type !== "TIMESTAMP"}
skin={
timestamp !== "" &&
column.name !== "" &&
timestamp === column.name
? "success"
: "transparent"
: "secondary"
}
onClick={() => {
onSetTimestamp(column.name)
Expand Down Expand Up @@ -161,7 +160,6 @@ export const Column = ({
helperText="Required when using the TIMESTAMP type"
>
<Form.Input
disabled={isEditLocked}
name={`schemaColumns.${index}.pattern`}
placeholder={DEFAULT_TIMESTAMP_FORMAT}
defaultValue={
Expand All @@ -188,7 +186,6 @@ export const Column = ({
}
>
<Form.Input
disabled={isEditLocked}
name={`schemaColumns.${index}.precision`}
required
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,6 @@ export const Columns = ({

return (
<>
{isEditLocked && (
<Disclaimer isEditLocked={true}>
<Alert size="20px" />
<Text color="orange">
Schema is read-only when importing to an existing table.
<br />
To edit, change the target table name and try again.
</Text>
</Disclaimer>
)}
{!isEditLocked && (
<Disclaimer isEditLocked={false}>
<Information size="20px" />
Expand Down