Permalink
Browse files

Merge pull request #668 from meetfranz/fix/import-screen-toggles

Fix import screen toggles
  • Loading branch information...
adlk committed Feb 8, 2018
2 parents 38addc9 + 0a407db commit 1220e2c935d63d2be92c9b2a77f5941d6efe45d6
Showing with 8 additions and 9 deletions.
  1. +8 −9 src/components/auth/Import.js
@@ -41,21 +41,21 @@ export default class Import extends Component {
intl: intlShape,
};
prepareForm() {
const { services } = this.props;
componentWillMount() {
const config = {
fields: {
import: [...services.filter(s => s.recipe).map(s => ({
add: {
default: true,
options: s,
import: [...this.props.services.filter(s => s.recipe).map(s => ({
fields: {
add: {
default: true,
options: s,
},
},
}))],
},
};
return new Form(config, this.context.intl);
this.form = new Form(config, this.context.intl);
}
submit(e) {
@@ -74,7 +74,6 @@ export default class Import extends Component {
}
render() {
this.form = this.prepareForm();
const { intl } = this.context;
const { services, isSubmitting, inviteRoute } = this.props;

0 comments on commit 1220e2c

Please sign in to comment.