move destroy method just to be safe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user