Default to section route if not specified

This commit is contained in:
Sebastiaan Janssen
2018-07-16 15:59:36 +02:00
parent 2a080da666
commit 596157f90b

View File

@@ -146,7 +146,7 @@ app.config(function ($routeProvider) {
//This controller will execute for this route, then we replace the template dynamnically based on the current tree.
controller: function ($scope, $route, $routeParams, treeService) {
if (!$routeParams.tree || !$routeParams.method) {
if (!$routeParams.method) {
$scope.templateUrl = "views/common/dashboard.html";
}