-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make indicator submission/edit convert csv to json #25
Conversation
cc: @dereklieu |
I think |
@kamicut this works now by changing tabs to commas on change and doing live validation, it occasionally warns with: Failed prop type: Invalid prop `value` of type `array` supplied to `TextWidget`, expected `string`
Failed prop type: Invalid prop `formData` supplied to `StringField`. but I'm not positive why; works though... |
@@ -30,12 +40,20 @@ class NewIndicator extends React.Component { | |||
}); | |||
} | |||
|
|||
handleChange (e) { |
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.
Since there's duplication between NewIndicator and EditIndicator, do you think this textfield should be its own widget?
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.
Yup, do you want ticket that out as a separate refactor?
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.
Yeah let's ticket it
@kamicut this isn't finished yet (no display parsing) but do you think the csv conversion can just be wrapped in a
try/catch
block to display errors while parsing?