Fix error when status app is not available

This commit is contained in:
Hadi Nategh 2020-04-22 11:52:07 +02:00
parent 444babdbc8
commit 6e932e09ae
2 changed files with 2 additions and 2 deletions

View File

@ -1088,7 +1088,7 @@ var AddressbookApp = /** @class */ (function (_super) {
*/
AddressbookApp.prototype.videoconference_isUserOnline = function (_action, _selected) {
var _a;
var list = app.status.getEntireList();
var list = app.status ? app.status.getEntireList() : {};
for (var sel in _selected) {
if (sel == '0' && _selected[sel]['id'] == 'nm')
continue;

View File

@ -1325,7 +1325,7 @@ class AddressbookApp extends EgwApp
*/
private videoconference_isUserOnline(_action, _selected)
{
let list = app.status.getEntireList();
let list = app.status ? app.status.getEntireList() : {};
for (let sel in _selected)
{
if (sel == '0' && _selected[sel]['id'] == 'nm') continue;