Skip to content

Commit

Permalink
Fixed #544. $state is not initialized in run, so we have to set t…
Browse files Browse the repository at this point in the history
…he default state within a controller.
  • Loading branch information
flekschas committed Jun 29, 2015
1 parent 571faaa commit d19b52b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions refinery/ui/src/js/node_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ angular.module('refineryNodeMapping', [
$scope.$onRootScope('nodeRelationshipChangedEvent', function( event, currentNodeRelationship ) {
$scope.currentNodeRelationship = currentNodeRelationship;
});

// Go to default state
$state.go('browse');
})

.factory("NodeSetList", function($resource) {
Expand Down Expand Up @@ -596,8 +599,4 @@ angular.module('refineryNodeMapping', [
is_exposed: 'true',
}
);
})

.run(['$state', function ($state,$scope) {
$state.transitionTo('browse');
}]);
});

0 comments on commit d19b52b

Please sign in to comment.