string cast

This commit is contained in:
Niels Lyngsø
2024-02-28 13:19:44 +01:00
parent 49c1e1f298
commit 378effa617

View File

@@ -28,7 +28,9 @@ export class UmbWorkspaceIsNewRedirectController extends UmbBaseController {
if (router && unique) {
const routerPath = router.absoluteRouterPath;
if (routerPath) {
const newPath = createRoutePathBuilder(ensurePathEndsWithSlash(routerPath) + 'edit/:id')({ id: unique });
const newPath: string = createRoutePathBuilder(ensurePathEndsWithSlash(routerPath) + 'edit/:id')({
id: unique,
});
this.destroy();
window.history.pushState({}, '', newPath);
}