From f9b934d8f5e77652bcd331c36d91b876110d0032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 22 Feb 2022 08:52:33 +0100 Subject: [PATCH] Fix 'View context' in media modals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/modal_root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/components/modal_root.js b/app/soapbox/components/modal_root.js index 9cda3b890..99b6b1c0e 100644 --- a/app/soapbox/components/modal_root.js +++ b/app/soapbox/components/modal_root.js @@ -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();