@gemsorg/modules
Advanced tools
Comparing version 0.1.29 to 0.1.30
{ | ||
"name": "@gemsorg/modules", | ||
"version": "0.1.29", | ||
"version": "0.1.30", | ||
"description": "gems modules", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "524e2d9572e64013248ba72494aeaf093008c575" | ||
"gitHead": "1f00d600f6f609266b79e16b267ae4c75a27fe7d" | ||
} |
@@ -53,8 +53,12 @@ import React, { Component } from 'react'; | ||
componentWillReceiveProps({ form: nextForm, variables, errors: nextErrors }) { | ||
const { errors, form } = this.props; | ||
if (form !== nextForm) { | ||
componentWillReceiveProps({ | ||
form: nextForm, | ||
variables: nextVars, | ||
errors: nextErrors, | ||
}) { | ||
const { errors, form, variables } = this.props; | ||
if (form !== nextForm || variables !== nextVars) { | ||
this.setState({ | ||
values: null, | ||
form: overrideFormVars(nextForm, variables), | ||
form: overrideFormVars(nextForm, nextVars), | ||
}); | ||
@@ -61,0 +65,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
279988
7495