Skip to content
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

Use Utility function in InputLiteral component to determine the boolean values from JSON strings #737

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

jgreben
Copy link
Contributor

@jgreben jgreben commented Jun 14, 2019

PR #738 Fixed #736. This PR is now only about using the Utility function to determine the boolean values from JSON strings.

@jgreben
Copy link
Contributor Author

jgreben commented Jun 14, 2019

Waiting for #738 to be merged

@jcoyne
Copy link
Contributor

jcoyne commented Jun 14, 2019

@jgreben In which situations would the props have null formData?

@jgreben
Copy link
Contributor Author

jgreben commented Jun 17, 2019

@jgreben In which situations would the props have null formData?

@jcoyne OK, I see that findNode will set formData to {} by default. Thanks.

@jgreben jgreben marked this pull request as ready for review June 17, 2019 18:11
@jgreben jgreben changed the title Fix blank screen when rendering InputLiteral component with empty formData. Use Utility function in InputLiteral component to determine the boolean values from JSON strings Jun 17, 2019
@jgreben jgreben added this to Needs Review in Sinopia Work-Cycle One Jun 17, 2019
@@ -118,13 +119,13 @@ export class InputLiteral extends Component {
this.inputLiteralRef.current.focus()
}

/**
* @return {bool} true if the field should be marked as required (e.g. not all obligations met)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

say default is false? or is that obvious?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's pretty clear from how it's documented that if it doesn't meet that condition it's false.

Sinopia Work-Cycle One automation moved this from Needs Review to In Progress Jun 17, 2019
@jcoyne jcoyne merged commit 79a11bf into master Jun 18, 2019
Sinopia Work-Cycle One automation moved this from In Progress to Done Jun 18, 2019
@ndushay ndushay deleted the undefined-literal-items branch June 21, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

InputLiteral TypeError: _this.props.formData.items is undefined
3 participants