sforkowany z mirror/soapbox
Merge branch 'fix-show-context' into 'develop'
Fix 'View context' in media modals See merge request soapbox-pub/soapbox-fe!1048improve-ci
commit
71378d8764
|
@ -161,7 +161,7 @@ class ModalRoot extends React.PureComponent {
|
|||
if (this.unlistenHistory) {
|
||||
this.unlistenHistory();
|
||||
}
|
||||
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS'].includes(type)) {
|
||||
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS', 'MEDIA'].includes(type)) {
|
||||
const { state } = this.history.location;
|
||||
if (state && state.soapboxModalKey === this._modalHistoryKey) {
|
||||
this.history.goBack();
|
||||
|
|
Ładowanie…
Reference in New Issue