Commit f2b8e902 authored by Matthew Taylor's avatar Matthew Taylor

switch ordering in defaults

This was assigning `props` to defaults, rather than the other way around. Fixes #618.
parent b874d05b
......@@ -29,8 +29,8 @@ module.exports.validationHOCFactory = function (defaultValidationErrors) {
var ValidatedComponent = React.createClass({
render: function () {
var validationErrors = defaults(
defaultValidationErrors,
this.props.validationErrors
this.props.validationErrors,
defaultValidationErrors
);
return (
<Component {...this.props} validationErrors={validationErrors} />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment