From ab050f7e3427380f3f79b64cdd114743243402e0 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Wed, 4 Sep 2024 14:46:41 +0200 Subject: [PATCH] chore(frontend): fix deprecations by using peekAll instead of fetchAll this works because when prefetching data we already do a `findAll` --- frontend/app/analysis/index/controller.js | 4 ++-- frontend/app/statistics/controller.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/app/analysis/index/controller.js b/frontend/app/analysis/index/controller.js index 5252a8cb8..d5e955111 100644 --- a/frontend/app/analysis/index/controller.js +++ b/frontend/app/analysis/index/controller.js @@ -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() { diff --git a/frontend/app/statistics/controller.js b/frontend/app/statistics/controller.js index f70de84ef..ad0ebd34e 100644 --- a/frontend/app/statistics/controller.js +++ b/frontend/app/statistics/controller.js @@ -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() {