kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix 'View context' in media modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>improve-ci
rodzic
9b02bd154a
commit
f9b934d8f5
|
@ -161,7 +161,7 @@ class ModalRoot extends React.PureComponent {
|
||||||
if (this.unlistenHistory) {
|
if (this.unlistenHistory) {
|
||||||
this.unlistenHistory();
|
this.unlistenHistory();
|
||||||
}
|
}
|
||||||
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS'].includes(type)) {
|
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS', 'MEDIA'].includes(type)) {
|
||||||
const { state } = this.history.location;
|
const { state } = this.history.location;
|
||||||
if (state && state.soapboxModalKey === this._modalHistoryKey) {
|
if (state && state.soapboxModalKey === this._modalHistoryKey) {
|
||||||
this.history.goBack();
|
this.history.goBack();
|
||||||
|
|
Ładowanie…
Reference in New Issue