From 8fb6bf60ac32f92ff917ca1ad447732270d23d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 5 May 2024 12:21:21 +0200 Subject: [PATCH] Dropdown menu links should close the media modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/dropdown-menu/dropdown-menu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/dropdown-menu/dropdown-menu.tsx b/src/components/dropdown-menu/dropdown-menu.tsx index 7bdaff9949..1fe9b0dca8 100644 --- a/src/components/dropdown-menu/dropdown-menu.tsx +++ b/src/components/dropdown-menu/dropdown-menu.tsx @@ -159,6 +159,7 @@ const DropdownMenu = (props: IDropdownMenu) => { if (typeof action === 'function') { action(event); } else if (to) { + dispatch(closeModal('MEDIA')); history.push(to); } };