diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index b437341d5..cf6db5680 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -81,6 +81,9 @@ class FileActions extends React.PureComponent { navigate, } = this.props; + const name = fileInfo ? fileInfo.name : null; + const channel = fileInfo ? fileInfo.channel_name : null; + const metadata = fileInfo ? fileInfo.metadata : null, openInFolderMessage = platform.startsWith("Mac") ? __("Open in Finder") @@ -189,7 +192,7 @@ class FileActions extends React.PureComponent { {claimIsMine && navigate("/publish", { name: fileInfo.name })} + onClick={() => navigate("/publish", { name, channel })} label={__("Edit claim")} />}