Commit 272368b 1 parent b1b2dc6 commit 272368b Copy full SHA for 272368b
File tree 2 files changed +28
-6
lines changed
2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ [ "@babel/env" , { "modules" : false } ]
4
+ ] ,
5
+ "env" : {
6
+ "test" : {
7
+ "presets" : [
8
+ [ "@babel/env" , { "targets" : { "node" : "current" } } ]
9
+ ]
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -36,12 +36,22 @@ export default {
36
36
};
37
37
},
38
38
methods: {
39
- init : async function () {
40
- this .clubs = await this .regattaService .getClubs ();
41
- this .blocks = await this .regattaService .getBlocks ();
42
- this .events = await this .regattaService .getFields ();
43
- this .regattas = await this .regattaService .getEditions (this .match );
44
- this .regatta = await this .regattaService .getEdition ();
39
+ init : function () {
40
+ this .regattaService .getClubs ().then (clubs => {
41
+ this .clubs = clubs;
42
+ });
43
+ this .regattaService .getBlocks ().then (blocks => {
44
+ this .blocks = blocks;
45
+ });
46
+ this .regattaService .getFields ().then (events => {
47
+ this .events = events;
48
+ });
49
+ this .regattaService .getEditions (this .match ).then (regattas => {
50
+ this .regattas = regattas;
51
+ });
52
+ this .regattaService .getEdition ().then (regatta => {
53
+ this .regatta = regatta;
54
+ });
45
55
sendPageView ();
46
56
}
47
57
},
You can’t perform that action at this time.
0 commit comments