(js) Add missing dependency in Scheduler routing

pull/110/head
Francis Lachapelle 2015-10-09 16:20:19 -04:00
parent e5fdc28241
commit 84f4698225
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@
/**
* @ngInject
*/
runBlock.$inject = ['$rootScope', '$log', '$location', 'Preferences'];
function runBlock($rootScope, $log, $location, Preferences) {
runBlock.$inject = ['$rootScope', '$log', '$location', '$state', 'Preferences'];
function runBlock($rootScope, $log, $location, $state, Preferences) {
$rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams, error) {
$log.error(error);
$state.go('calendar');