diff --git a/client/src/containers/PublishTool/view.jsx b/client/src/containers/PublishTool/view.jsx index 79d82a1f..86e4c2b2 100644 --- a/client/src/containers/PublishTool/view.jsx +++ b/client/src/containers/PublishTool/view.jsx @@ -8,7 +8,7 @@ import { SAVE } from '../../constants/confirmation_messages'; class PublishTool extends React.Component { render () { - const {disabled, file, isUpdate, hasChanged, uri, status} = this.props; + const {disabled, file, isUpdate, hasChanged, uri, status, location: currentLocation} = this.props; if (disabled) { return ( @@ -24,7 +24,7 @@ class PublishTool extends React.Component { location.pathname === '/' ? true : SAVE} + message={(location) => location.pathname === currentLocation.pathname ? false : SAVE} />