Skip to content

Commit ab050f7

Browse files
committed
chore(frontend): fix deprecations by using peekAll instead of fetchAll
this works because when prefetching data we already do a `findAll`
1 parent 3efcc40 commit ab050f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/app/analysis/index/controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ export default class AnalysisController extends QPController {
8686
@tracked comment;
8787

8888
get billingTypes() {
89-
return this.store.findAll("billing-type");
89+
return this.store.peekAll("billing-type");
9090
}
9191

9292
get costCenters() {
93-
return this.store.findAll("cost-center");
93+
return this.store.peekAll("cost-center");
9494
}
9595

9696
get selectedCustomer() {

frontend/app/statistics/controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ export default class StatisticsController extends QPController {
7373
}
7474

7575
get billingTypes() {
76-
return this.store.findAll("billing-type");
76+
return this.store.peekAll("billing-type");
7777
}
7878

7979
get costCenters() {
80-
return this.store.findAll("cost-center");
80+
return this.store.peekAll("cost-center");
8181
}
8282

8383
get selectedCustomer() {

0 commit comments

Comments
 (0)