Skip to content

Commit 272368b

Browse files
committed
Fix failing test
1 parent b1b2dc6 commit 272368b

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

.babelrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

src/Views/IframeView.vue

+16-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@ export default {
3636
};
3737
},
3838
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+
});
4555
sendPageView();
4656
}
4757
},

0 commit comments

Comments
 (0)