-
Notifications
You must be signed in to change notification settings - Fork 0
Import export fix #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| try { row[col.name] = JSON.parse(val); } | ||
| catch (e) { row[col.name] = val.split(',').map(s => s.trim()); } | ||
| } else { | ||
| row[col.name] = val.split(',').map(s => s.trim()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets fix DRY on this line
row[col.name] = val.split(',').map(s => s.trim());
Instead we can use boolean like
let useCommaParsing = false;
and set it to true
index.ts
Outdated
| } | ||
| } | ||
| } else if (typeof val === 'number') { | ||
| row[col.name] = [val.toString()]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are u sure this is possible? if you will try to add console.log, can you make it executing and show screenshot here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets research why wand whether it is needed
index.ts
Outdated
| } | ||
| } | ||
| } else if (typeof val === 'number') { | ||
| row[col.name] = [val.toString()]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets research why wand whether it is needed

No description provided.