Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix proptype warning #998

Merged
merged 1 commit into from
Jan 19, 2018
Merged

Conversation

Quicksaver
Copy link
Contributor

Closes #997.

- Summary

Load any page and this appears in the console:

Warning: Failed prop type: Invalid prop newEntryUrl of type boolean supplied to CollectionTop, expected string.

About the change, later newEntryUrl is evaluated on a truey/falsey base and used directly as a string, so we can supply an empty string and it will be evaluated as falsey just the same.

- Test plan

Load any page, warning shouldn't appear in the console.

- Description for the changelog

Fix PropType warning in console.

@verythorough
Copy link
Contributor

Deploy preview ready!

Built with commit 26c6385

https://deploy-preview-998--cms-demo.netlify.com

@verythorough
Copy link
Contributor

Deploy preview ready!

Built with commit 26c6385

https://deploy-preview-998--netlify-cms-www.netlify.com

@erquhart erquhart merged commit 3691417 into decaporg:master Jan 19, 2018
@Quicksaver Quicksaver deleted the 997_fix_proptype_warning branch January 23, 2018 17:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong proptype warning in console
3 participants