move destroy method just to be safe

This commit is contained in:
Niels Lyngsø
2024-02-28 13:19:03 +01:00
parent 564f2ca4c6
commit 49c1e1f298

View File

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