Skip to content

Commit

Permalink
Removes logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsreekanti committed Jul 27, 2022
1 parent d80bace commit 5bc4db0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/ui/common/src/components/integrations/dialogs/csvDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,14 @@ export const CSVDialog: React.FC<Props> = ({ setDialogConfig, setErrMsg }) => {
const allRows = file.data.split(/\r?\n/);
const parsedHeader = ['id'];
parsedHeader.push(...allRows[0].split(/,/));
console.log('header is', parsedHeader);

const width = 25;
const parsedColumns = parsedHeader.map((headerName) => {
let hideColumn = false;
if (headerName === 'id') {
hideColumn = true;
}

console.log({
field: headerName,
headerName: headerName,
width: width * headerName.length,
hide: hideColumn,
});
return {
field: headerName,
headerName: headerName,
Expand All @@ -61,11 +55,6 @@ export const CSVDialog: React.FC<Props> = ({ setDialogConfig, setErrMsg }) => {
}
});

if (id === 0) {
console.log(row)
console.log(parsedHeader);
console.log(parsedRow);
}
return parsedRow;
});

Expand Down

0 comments on commit 5bc4db0

Please sign in to comment.