Skip to content
Snippets Groups Projects
Commit 88a9669c authored by Tom Robinson's avatar Tom Robinson
Browse files

Temporary fix for React router not updating

parent 472e9d69
No related branches found
No related tags found
No related merge requests found
......@@ -94,18 +94,18 @@ Metabase.config(['$routeProvider', '$locationProvider', function($routeProvider,
var newParams = $route.current.params;
var oldParams = route.params;
if ($route.current.$$route.controller === route.controller) {
$route.current = route;
angular.forEach(oldParams, function(value, key) {
delete $route.current.params[key];
delete $routeParams[key];
});
angular.forEach(newParams, function(value, key) {
$route.current.params[key] = value;
$routeParams[key] = value;
});
}
// if ($route.current.$$route.controller === route.controller) {
// $route.current = route;
//
// angular.forEach(oldParams, function(value, key) {
// delete $route.current.params[key];
// delete $routeParams[key];
// });
// angular.forEach(newParams, function(value, key) {
// $route.current.params[key] = value;
// $routeParams[key] = value;
// });
// }
});
}
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment