mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] router: remove useless check
This commit is contained in:
@@ -54,7 +54,7 @@ export class Router {
|
||||
QWeb.register("__component__" + partialRoute.name, partialRoute.component);
|
||||
}
|
||||
if (partialRoute.redirect) {
|
||||
this.validateDestination(partialRoute.redirect);
|
||||
this.validateDestination(partialRoute.redirect);
|
||||
}
|
||||
partialRoute.params = partialRoute.path ? findParams(partialRoute.path) : [];
|
||||
this.routes[partialRoute.name] = partialRoute as Route;
|
||||
@@ -116,7 +116,6 @@ export class Router {
|
||||
if (params) {
|
||||
if (route.redirect) {
|
||||
this.navigate(route.redirect);
|
||||
this.checkRoute();
|
||||
return;
|
||||
}
|
||||
this.currentRoute = route;
|
||||
|
||||
Reference in New Issue
Block a user