From 3095fec53a079d8a992d6b090fd229498bc7b5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 23 May 2023 10:04:13 +0200 Subject: [PATCH] allow undefined --- src/Umbraco.Web.UI.Client/libs/router/route.context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/libs/router/route.context.ts b/src/Umbraco.Web.UI.Client/libs/router/route.context.ts index 2a3afddfaf..38cfd0b1ad 100644 --- a/src/Umbraco.Web.UI.Client/libs/router/route.context.ts +++ b/src/Umbraco.Web.UI.Client/libs/router/route.context.ts @@ -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();