Skip to content

Commit

Permalink
I18N-1293 - Invalid text unit info modal if browser back button used
Browse files Browse the repository at this point in the history
Hid all the modals when the workbench component is unmounted
  • Loading branch information
DarKhaos committed Oct 10, 2024
1 parent dd07faa commit 3b9f242
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ import AuthorityService from "../../utils/AuthorityService";

let Workbench = createReactClass({
displayName: 'Workbench',

componentWillUnmount() {
GitBlameActions.close();
GitBlameScreenshotViewerActions.closeScreenshotsViewer();
TranslationHistoryActions.close();
ShareSearchParamsModalActions.close();
},
render: function () {
return (
<div>
Expand Down

0 comments on commit 3b9f242

Please sign in to comment.