From fa531e94972370cfdd3c379e219f6d1b57e3d538 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Fri, 25 Aug 2017 23:33:04 -0600 Subject: [PATCH] simple fix for #467 --- ui/js/component/fileActions/view.jsx | 3 ++- ui/js/component/publishForm/view.jsx | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index 61e7ca383..0a5ead0ca 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -77,6 +77,7 @@ class FileActions extends React.PureComponent { } = this.props; const name = fileInfo ? fileInfo.name : null; + const path = fileInfo ? fileInfo.download_path : null; const channel = fileInfo ? fileInfo.channel_name : null; const metadata = fileInfo ? fileInfo.metadata : null, @@ -180,7 +181,7 @@ class FileActions extends React.PureComponent { {claimIsMine && navigate("/publish", { name, channel })} + onClick={() => navigate("/publish", { name, channel, path })} label={__("Edit claim")} />} { this.onFileChange(event); }}