Dropdown menu links should close the media modal
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -159,6 +159,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
|
||||
if (typeof action === 'function') {
|
||||
action(event);
|
||||
} else if (to) {
|
||||
dispatch(closeModal('MEDIA'));
|
||||
history.push(to);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user