allow undefined

This commit is contained in:
Niels Lyngsø
2023-05-23 10:04:13 +02:00
parent b9342bc00b
commit 3095fec53a

View File

@@ -95,7 +95,7 @@ export class UmbRouteContext {
this.#generateNewUrlBuilders();
}
public _internal_routerGotActiveLocalPath(routerActiveLocalPath: string) {
public _internal_routerGotActiveLocalPath(routerActiveLocalPath: string | undefined) {
if (this.#routerActiveLocalPath === routerActiveLocalPath) return;
this.#routerActiveLocalPath = routerActiveLocalPath;
this.#generateNewUrlBuilders();