From 2fb50a64ae3844234e46436681d98c5dd45c2a62 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 31 Oct 2019 12:57:37 +0300 Subject: [PATCH] Refactoring --- apps/common/main/lib/view/Header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 6f3333034..7933acdee 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -183,7 +183,7 @@ define([ function onLostEditRights() { _readonlyRights = true; - $panelUsers.find('#tlb-change-rights').hide(); + $panelUsers && $panelUsers.find('#tlb-change-rights').hide(); $btnUsers && !$btnUsers.menu && $panelUsers.hide(); }