Skip to content

Commit

Permalink
Fix app grid not working when empty openpaas.js
Browse files Browse the repository at this point in the history
Related to linagora#251
  • Loading branch information
alagane committed Dec 10, 2021
1 parent 78068a3 commit ef2582b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/js/modules/application-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ angular.module('esn.application-menu', [])
replace: true,
template: require('../../views/modules/application-menu/application-menu-toggler.pug'),
link: function($scope) {
$scope.appGridItems = window.openpaas.APP_GRID_ITEMS || process.env.APP_GRID_ITEMS;
$scope.appGridItems = (window.openpaas && window.openpaas.APP_GRID_ITEMS) || process.env.APP_GRID_ITEMS;

if (!$scope.appGridItems) {
$log.error('The environment variable APP_GRID_ITEMS has not been defined yet, and the application grid will break.');
Expand Down

0 comments on commit ef2582b

Please sign in to comment.