Skip to content

Commit 788e5cd

Browse files
authored
remove unnecessary code (#18927)
1 parent ebd5fb4 commit 788e5cd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,6 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
359359
return true;
360360
}
361361

362-
/* TODO: temp removal of discard changes in workspace modals.
363-
The modal closes before the discard changes dialog is resolved.*/
364-
// TODO: I think this can go away now???
365-
if (newUrl.includes('/modal/umb-modal-workspace/')) {
366-
return true;
367-
}
368-
369362
if (this._checkWillNavigateAway(newUrl) && this._getHasUnpersistedChanges()) {
370363
/* Since ours modals are async while events are synchronous, we need to prevent the default behavior of the event, even if the modal hasn’t been resolved yet.
371364
Once the modal is resolved (the user accepted to discard the changes and navigate away from the route), we will push a new history state.

0 commit comments

Comments
 (0)