From 0fdf7d91656d78cc8d49ca352de1c8934b6d8bae Mon Sep 17 00:00:00 2001 From: Ruel Tmeizeh - RuhNet Date: Fri, 15 Aug 2025 12:24:47 -0400 Subject: [PATCH] Fixed error when agents status is queried and there are no agents. --- src/apps/callcenter/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/callcenter/app.js b/src/apps/callcenter/app.js index e280573..a2fa423 100644 --- a/src/apps/callcenter/app.js +++ b/src/apps/callcenter/app.js @@ -363,6 +363,9 @@ var app = { }, success: function (data) { callback(data.data); + }, + error: function(data) { + callback({data: []}) } }); },