Fix 'View context' in media modals

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
improve-ci
marcin mikołajczak 2022-02-22 08:52:33 +01:00
rodzic 9b02bd154a
commit f9b934d8f5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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