mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Check that getApplicationByName() got something before using it, avoids hidden error loading sideboxes for apps with no tab
This commit is contained in:
parent
965e56e02e
commit
1f65eee3fc
@ -351,7 +351,7 @@
|
|||||||
|
|
||||||
if (typeof _app == 'string') _app = this.getApplicationByName(_app);
|
if (typeof _app == 'string') _app = this.getApplicationByName(_app);
|
||||||
//Set the sidebox width if a application specific sidebox width is set
|
//Set the sidebox width if a application specific sidebox width is set
|
||||||
if (_app == _app.parentFw.activeApp && _app.sideboxWidth !== false )
|
if (_app && _app == _app.parentFw.activeApp && _app.sideboxWidth !== false )
|
||||||
{
|
{
|
||||||
this.splitterUi.constraints[0].size = _app.sideboxWidth;
|
this.splitterUi.constraints[0].size = _app.sideboxWidth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user