Adding conditional to prevent undefined object error

This commit is contained in:
Tyler Smith
2016-01-19 19:53:20 -08:00
parent 0b5a8bf76d
commit b5b3a1545b
@@ -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()
});
}