Dropdown menu links should close the media modal
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
2c433c15e1
commit
8fb6bf60ac
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
|
|||
if (typeof action === 'function') {
|
||||
action(event);
|
||||
} else if (to) {
|
||||
dispatch(closeModal('MEDIA'));
|
||||
history.push(to);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue