From 6e932e09aeacf614d58ffb78d3d7fa43f6059b4e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 22 Apr 2020 11:52:07 +0200 Subject: [PATCH] Fix error when status app is not available --- addressbook/js/app.js | 2 +- addressbook/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index e8465d4d4f..293bb713db 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -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; diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index 502e01ab37..164c7e60e9 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -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;