Skip to content

Commit

Permalink
fix incorrect routing when adding dashboard to a device
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrManuZ committed Apr 1, 2018
1 parent 00fd675 commit a8aa368
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
if ($routeParams.groupId) {
$location.path('/group/' + $routeParams.groupId + '/dashboard/' + result.data.id);
} else if ($routeParams.deviceId) {
$location.path('/device/' + $routeParams.groupId + '/dashboard/' + result.data.id);
$location.path('/device/' + $routeParams.deviceId + '/dashboard/' + result.data.id);
}
c8yAlert.success('Dashboard successfully imported.')
vm.close();
Expand Down

0 comments on commit a8aa368

Please sign in to comment.