do not prompt for leaving publish page to publish page

This commit is contained in:
Travis Eden 2018-10-28 18:30:48 -04:00
parent 3378e4289f
commit 760edeff1f

View file

@ -24,7 +24,7 @@ class PublishTool extends React.Component {
<React.Fragment>
<Prompt
when={hasChanged}
message={SAVE}
message={(location) => location.pathname === '/' ? true : SAVE}
/>
<PublishPreview isUpdate={isUpdate} uri={uri} />
</React.Fragment>