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 8af1f81
Showing 1 changed file with 1 addition and 7 deletions.
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 Down

0 comments on commit 8af1f81

Please sign in to comment.