Skip to content

Commit

Permalink
Merge pull request #1004 from junaidrsd/fix-nav-error
Browse files Browse the repository at this point in the history
fix undefined error
  • Loading branch information
Junaid Rasheed committed Sep 2, 2016
2 parents f3985d1 + 6c143d3 commit cdd128e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/app/js/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ angular.module('sgApp')
};

$scope.isSideNav = function() {
return $scope.config.data.sideNav;
if($scope.config.data) {
return $scope.config.data.sideNav;
}
};

// Bind variable to scope to wait for data to be resolved
Expand Down

0 comments on commit cdd128e

Please sign in to comment.