Skip to content

Commit

Permalink
removes logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Nov 7, 2023
1 parent 498d67a commit 7f30afc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ui/app/mirrors/create/tablemapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ const TableMapping = ({
setSchema,
}: TableMappingProps) => {
const [allSchemas, setAllSchemas] = useState<string[]>();
//const [allTables, setAllTables] = useState<string[]>();
const [tableColumns, setTableColumns] = useState<
{ tableName: string; columns: string[] }[]
>([]);
const [loading, setLoading] = useState(false);

const handleAddRow = (source: string) => {
// find the row with source and update the selected
const newRows = [...rows];
const index = newRows.findIndex((row) => row.source === source);
if (index >= 0) newRows[index].selected = true;
Expand All @@ -66,7 +64,6 @@ const TableMapping = ({
e: React.MouseEvent<HTMLInputElement, MouseEvent>
) => {
if (e.currentTarget.checked) {
// set selected for all rows to be true
const newRows = [...rows];
newRows.forEach((_, i) => {
newRows[i].selected = true;
Expand Down Expand Up @@ -101,7 +98,6 @@ const TableMapping = ({
const getTablesOfSchema = useCallback(
(schemaName: string) => {
fetchTables(sourcePeerName, schemaName, setLoading).then((tableNames) =>
// for each tableName, add a row to `rows` state
setRows((curr) => {
const newRows = [...curr];
tableNames.forEach((tableName) => {
Expand Down

0 comments on commit 7f30afc

Please sign in to comment.