-
Notifications
You must be signed in to change notification settings - Fork 80
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
Only validate CSV headers when CSV has headers #1014
Conversation
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.
Seems like a good rule of thumb when validating CSV headers
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.
If ES Lint rules do not apply then all looks good to me.
@@ -34,9 +35,11 @@ const CustomCSVForm = (props: Props) => { | |||
} = props | |||
|
|||
useEffect(() => { | |||
// Default to true | |||
const validateHeaders = props.validateHeaders !== undefined ? props.validateHeaders : true |
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.
Do ES Lint rules apply to this repo? I know there are rules for a multiline ternary.
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.
Do ES Lint rules apply to this repo? I know there are rules for a multiline ternary.
Datatools has its own eslint config, supplied by mastarm
Checklist
dev
before they can be merged tomaster
)Description
CSV Headers are not present when appending. We should not validate them as such.