Skip to content
Snippets Groups Projects
Unverified Commit af591350 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Prevent a Uncaught TypeError in router

parent 0048ea06
No related branches found
No related tags found
No related merge requests found
Pipeline #22664 passed
......@@ -102,6 +102,12 @@ export class Router {
if (partialState === undefined)
partialState = {};
let combined = {...currentState, ...partialState};
// prevent: Uncaught TypeError: Expected "component" to match "[^\/#\?]+?", but got ""
if (combined.component === '') {
combined.component = 'root';
}
return generateUrls(this.router)(this.routeName, combined);
}
......
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