diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-02-20 18:09:13 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-02-20 18:09:13 +0100 |
commit | c8722f83b6420c5b881b33fda2d8d00d0075367b (patch) | |
tree | 8f0dcf36ab304162f3e4ffac0f5c52fe44de5e72 /js/app | |
parent | 055c0930b6b4cd9e0d1c6e5d77d7869bfdc7cb4d (diff) |
fix small possible error
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/Config.js | 4 |
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; } |