File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -41,21 +41,21 @@ export default class Import extends Component {
41
41
intl : intlShape ,
42
42
} ;
43
43
44
- prepareForm ( ) {
45
- const { services } = this . props ;
46
-
44
+ componentWillMount ( ) {
47
45
const config = {
48
46
fields : {
49
- import : [ ...services . filter ( s => s . recipe ) . map ( s => ( {
50
- add : {
51
- default : true ,
52
- options : s ,
47
+ import : [ ...this . props . services . filter ( s => s . recipe ) . map ( s => ( {
48
+ fields : {
49
+ add : {
50
+ default : true ,
51
+ options : s ,
52
+ } ,
53
53
} ,
54
54
} ) ) ] ,
55
55
} ,
56
56
} ;
57
57
58
- return new Form ( config , this . context . intl ) ;
58
+ this . form = new Form ( config , this . context . intl ) ;
59
59
}
60
60
61
61
submit ( e ) {
@@ -74,7 +74,6 @@ export default class Import extends Component {
74
74
}
75
75
76
76
render ( ) {
77
- this . form = this . prepareForm ( ) ;
78
77
const { intl } = this . context ;
79
78
const { services, isSubmitting, inviteRoute } = this . props ;
80
79
You can’t perform that action at this time.
0 commit comments