Skip to content

Commit

Permalink
Fix override error when link form is loaded (silverstripe#119)
Browse files Browse the repository at this point in the history
Fix remove JS env check, so debugging is possible without watching admin
  • Loading branch information
flamerohr authored and Aaron Carlino committed Jun 27, 2017
1 parent 50586d7 commit 3698192
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/boot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function appBoot() {
const debugging = Config.get('debugging');
let runMiddleware = applyMiddleware(...middleware);

if (process.env.NODE_ENV !== 'production' && debugging) {
if (debugging) {
runMiddleware = applyDevtools(runMiddleware);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class FormBuilderLoader extends Component {
[state.name]: state.value,
});
}, {});
this.props.actions.reduxForm.initialize(this.props.schemaUrl, formData);
this.props.actions.reduxForm.initialize(this.props.identifier, formData);
}
}
return schema;
Expand Down
4 changes: 3 additions & 1 deletion client/src/containers/InsertLinkModal/InsertLinkModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class InsertLinkModal extends Component {
super(props);

this.handleSubmit = this.handleSubmit.bind(this);
props.setOverrides(props.show ? props : null);
if (!props.show) {
props.setOverrides(null);
}
}

componentWillReceiveProps(props) {
Expand Down

0 comments on commit 3698192

Please sign in to comment.