fixed VoiceCallActive not displaying entries that get sent by the API
This commit is contained in:
@@ -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),
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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 = {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user