mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
switch ordering in defaults
This was assigning `props` to defaults, rather than the other way around. Fixes #618.
This commit is contained in:
parent
b874d05bda
commit
f2b8e9025d
1 changed files with 2 additions and 2 deletions
|
@ -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} />
|
||||
|
|
Loading…
Reference in a new issue