From 42cc8fdb5218694822a74639ba45808fb6f2cfb2 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 cf6db5680..85dfbc1b4 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -82,6 +82,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, @@ -192,7 +193,7 @@ class FileActions extends React.PureComponent { {claimIsMine && navigate("/publish", { name, channel })} + onClick={() => navigate("/publish", { name, channel, path })} label={__("Edit claim")} />} { this.onFileChange(event); }}