Skip to content

Commit

Permalink
chore(frontend): fix deprecations by using peekAll instead of fetchAll
Browse files Browse the repository at this point in the history
this works because when prefetching data we already do a `findAll`
  • Loading branch information
c0rydoras committed Sep 4, 2024
1 parent 3efcc40 commit ab050f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/app/analysis/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export default class AnalysisController extends QPController {
@tracked comment;

get billingTypes() {
return this.store.findAll("billing-type");
return this.store.peekAll("billing-type");
}

get costCenters() {
return this.store.findAll("cost-center");
return this.store.peekAll("cost-center");
}

get selectedCustomer() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/statistics/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export default class StatisticsController extends QPController {
}

get billingTypes() {
return this.store.findAll("billing-type");
return this.store.peekAll("billing-type");
}

get costCenters() {
return this.store.findAll("cost-center");
return this.store.peekAll("cost-center");
}

get selectedCustomer() {
Expand Down

0 comments on commit ab050f7

Please sign in to comment.