From 79e8cda5e531647594b3f2e480f795ae741df733 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Fri, 5 Jul 2024 07:13:45 +0200 Subject: [PATCH] fixed VoiceCallActive not displaying entries that get sent by the API --- application/VoiceCallActive/VoiceCallActiveController.php | 4 +--- public/plugins/vue/tt-components/tt-table.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/application/VoiceCallActive/VoiceCallActiveController.php b/application/VoiceCallActive/VoiceCallActiveController.php index f5fb98541..f31f88c05 100644 --- a/application/VoiceCallActive/VoiceCallActiveController.php +++ b/application/VoiceCallActive/VoiceCallActiveController.php @@ -70,8 +70,6 @@ class VoiceCallActiveController extends mfBaseController { private function getActiveCalls(): array { $activeCalls = $this->kolmisoftMore->getActiveCalls(); - return [ - "rows" => is_null($activeCalls) ? [] : (is_object($activeCalls) ? [$activeCalls] : $activeCalls), - ]; + return is_null($activeCalls) ? [] : (is_object($activeCalls) ? [$activeCalls] : $activeCalls); } } \ No newline at end of file diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 106efd5e0..95edac401 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -296,7 +296,7 @@ Vue.component('tt-table', { * @param {number} page The page number to fetch data for. * @async */ - async fetchData(page = 0) { + async fetchData(page = 1) { console.log('Fetching data...'); this.expandedRows = {};