Skip to content

Commit 7398075

Browse files
committed
controllers/index: Fix fetchData() return value
Without this the `let promise = controller.fetchData();` will be invalid because the method does not return anything.
1 parent da3e98d commit 7398075

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)