mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Fix more code discrepancies
This commit is contained in:
@@ -110,8 +110,9 @@ class ModalRoot extends PureComponent {
|
||||
}
|
||||
|
||||
_handleModalClose () {
|
||||
this.unlistenHistory();
|
||||
|
||||
if (this.unlistenHistory) {
|
||||
this.unlistenHistory();
|
||||
}
|
||||
const { state } = this.history.location;
|
||||
if (state && state.mastodonModalKey === this._modalHistoryKey) {
|
||||
this.history.goBack();
|
||||
|
||||
Reference in New Issue
Block a user