diff --git a/app/coffee/modules/taskboard/charts.coffee b/app/coffee/modules/taskboard/charts.coffee index 872fe43e..41b1f456 100644 --- a/app/coffee/modules/taskboard/charts.coffee +++ b/app/coffee/modules/taskboard/charts.coffee @@ -89,13 +89,15 @@ SprintGraphDirective = -> element = angular.element($el) $scope.$on "resize", -> - redrawChart(element, $scope.stats.days) + redrawChart(element, $scope.stats.days) if $scope.stats $scope.$on "taskboard:graph:toggle-visibility", -> $el.parent().toggleClass('open') # fix chart overflow - timeout(100, -> redrawChart(element, $scope.stats.days)) + timeout(100, -> + redrawChart(element, $scope.stats.days) if $scope.stats + ) $scope.$watch 'stats', (value) -> if not $scope.stats?