Skip to content

Commit 5c033fa

Browse files
committed
Auto merge of #4264 - Turbo87:fetch-data, r=Turbo87
controllers/index: Fix `fetchData()` return value Without this the `let promise = controller.fetchData();` will be invalid because the method does not return anything.
2 parents c846eb3 + 7398075 commit 5c033fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class IndexController extends Controller {
1616
}
1717

1818
@action fetchData() {
19-
this.dataTask.perform().catch(() => {
19+
return this.dataTask.perform().catch(() => {
2020
// we ignore errors here because they are handled in the template already
2121
});
2222
}

0 commit comments

Comments
 (0)