Dropdown menu links should close the media modal

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-05-05 12:21:21 +02:00
parent 2c433c15e1
commit 8fb6bf60ac

View file

@ -159,6 +159,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
if (typeof action === 'function') {
action(event);
} else if (to) {
dispatch(closeModal('MEDIA'));
history.push(to);
}
};