fixed VoiceCallActive not displaying entries that get sent by the API

This commit is contained in:
2024-07-05 07:13:45 +02:00
parent 6da0d4e502
commit 79e8cda5e5
2 changed files with 2 additions and 4 deletions

View File

@@ -70,8 +70,6 @@ class VoiceCallActiveController extends mfBaseController {
private function getActiveCalls(): array { private function getActiveCalls(): array {
$activeCalls = $this->kolmisoftMore->getActiveCalls(); $activeCalls = $this->kolmisoftMore->getActiveCalls();
return [ return is_null($activeCalls) ? [] : (is_object($activeCalls) ? [$activeCalls] : $activeCalls);
"rows" => is_null($activeCalls) ? [] : (is_object($activeCalls) ? [$activeCalls] : $activeCalls),
];
} }
} }

View File

@@ -296,7 +296,7 @@ Vue.component('tt-table', {
* @param {number} page The page number to fetch data for. * @param {number} page The page number to fetch data for.
* @async * @async
*/ */
async fetchData(page = 0) { async fetchData(page = 1) {
console.log('Fetching data...'); console.log('Fetching data...');
this.expandedRows = {}; this.expandedRows = {};