Skip to content

Commit

Permalink
table list: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Oct 19, 2023
1 parent 875ae34 commit b389931
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/web-console/src/scenes/Schema/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ import Table from "./Table"
import LoadingError from "./LoadingError"
import { BusEvent } from "../../consts"
import { Box } from "../../components/Box"
import { SchemaFormValues } from "components/TableSchemaDialog/types"
import { formatTableSchemaQuery } from "../../utils/formatTableSchemaQuery"
import { useEditor } from "../../providers"
import { Button } from "@questdb/react-components"
import { Panel } from "../../components/Panel"

Expand Down Expand Up @@ -107,7 +104,6 @@ const Schema = ({
const [isScrolling, setIsScrolling] = useState(false)
const { readOnly } = useSelector(selectors.console.getConfig)
const dispatch = useDispatch()
const { appendQuery } = useEditor()
const [scrollAtTop, setScrollAtTop] = useState(false)
const scrollerRef = useRef<HTMLDivElement | null>(null)

Expand Down Expand Up @@ -165,22 +161,6 @@ const Schema = ({
)
}, [quest])

const handleAddTableSchema = (values: SchemaFormValues) => {
const { name, partitionBy, timestamp, schemaColumns, walEnabled } = values
const tableSchemaQuery = formatTableSchemaQuery({
name,
partitionBy,
timestamp,
walEnabled: walEnabled === "true",
schemaColumns: schemaColumns.map((column) => ({
column: column.name,
type: column.type,
})),
})
appendQuery(tableSchemaQuery, { appendAt: "end" })
dispatch(actions.query.toggleRunning())
}

useEffect(() => {
void fetchTables()

Expand Down

0 comments on commit b389931

Please sign in to comment.