Skip to content

Commit

Permalink
Reverted changes for commit #c834a96
Browse files Browse the repository at this point in the history
  • Loading branch information
sneu012 committed Sep 13, 2019
1 parent df7d62a commit 886cd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Extension of react-jsonschema-form with conditional field support",
"private": false,
"author": "[email protected]",
"version": "0.3.14",
"version": "0.3.15",
"scripts": {
"build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/",
"build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --optimize-minimize",
Expand Down
9 changes: 2 additions & 7 deletions src/applyRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export default function applyRules(
});
}

const runRules = rulesRunner(schema, uiSchema, rules, Engine, extraActions);

return FormComponent => {
class FormWithConditionals extends Component {
constructor(props) {
Expand Down Expand Up @@ -91,13 +93,6 @@ export default function applyRules(

updateConf(formData) {
this.formData = formData;
const runRules = rulesRunner(
this.state.schema,
this.state.uiSchema,
rules,
Engine,
extraActions
);
return runRules(formData).then(conf => {
let dataChanged = !deepEquals(this.formData, conf.formData);
this.formData = conf.formData;
Expand Down

0 comments on commit 886cd95

Please sign in to comment.