align with the activeModalPath
This commit is contained in:
@@ -125,7 +125,7 @@ export class UmbRouteContext extends UmbControllerBase {
|
||||
if (this.#activeModalPath) {
|
||||
// If if there is a modal using the old path.
|
||||
const activeModal = this.#modalRegistrations.find((registration) => {
|
||||
return '/' + registration.generateModalPath() === this.#activeModalPath;
|
||||
return registration.generateModalPath() === this.#activeModalPath;
|
||||
});
|
||||
if (activeModal) {
|
||||
this.#modalContext?.close(activeModal.key);
|
||||
|
||||
Reference in New Issue
Block a user