Adding conditional to prevent undefined object error
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
if ($scope.$parent._expandedMenu) {
|
||||
$scope.$parent._expandedMenu.menu = null;
|
||||
}
|
||||
$scope._expandedMenu.menu = null;
|
||||
if ($scope._expandedMenu) $scope._expandedMenu.menu = null;
|
||||
$scope.$apply()
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user