Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(analysis): move prefetch data call to route
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Oct 31, 2023
1 parent 9520f07 commit db23304
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/analysis/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ export default class AnalysisController extends QPController {
@tracked costCenter;
@tracked ordering = "-date";

constructor(...args) {
super(...args);

this.prefetchData.perform();
}

get billingTypes() {
return this.store.findAll("billing-type");
}
Expand Down
4 changes: 4 additions & 0 deletions app/analysis/index/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ export default class AnalysisIndexRoute extends Route {
controller._reset();
});
}

setupController(controller) {
controller.prefetchData.perform();
}
}

0 comments on commit db23304

Please sign in to comment.