Fix missing navigate on Edit mobile menu button for own claims

This commit is contained in:
Rafael 2022-02-09 12:39:23 -03:00 committed by Thomas Zarebczan
parent aaf36e88dd
commit 2a7b9364e4

View file

@ -196,7 +196,13 @@ export default function FileActions(props: Props) {
{claimIsMine && (
<>
<MenuItem className="comment__menu-option" onSelect={() => doEditForChannel(claim, editUri)}>
<MenuItem
className="comment__menu-option"
onSelect={() => {
doEditForChannel(claim, editUri);
push(`/$/${PAGES.UPLOAD}`);
}}
>
<div className="menu__link">
<Icon aria-hidden icon={ICONS.EDIT} />
{isLivestreamClaim ? __('Update or Publish Replay') : __('Edit')}