summaryrefslogtreecommitdiffstats
path: root/js/app/Config.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/Config.js')
-rw-r--r--js/app/Config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app/Config.js b/js/app/Config.js
index 8c9c09290..7f9c54bef 100644
--- a/js/app/Config.js
+++ b/js/app/Config.js
@@ -105,7 +105,9 @@ app.config(function ($routeProvider, $provide, $httpProvider) {
search: search
};
- if ($route.current.params.id !== undefined) {
+ if ($route.current !== undefined &&
+ $route.current.params !== undefined &&
+ $route.current.params.id !== undefined) {
parameters.id = $route.current.params.id;
}