Fix more code discrepancies

This commit is contained in:
Claire
2023-11-15 13:19:37 +01:00
parent 1023c2f90b
commit 349579e318
5 changed files with 9 additions and 9 deletions

View File

@@ -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();