do not prompt for leaving publish page to publish page
This commit is contained in:
parent
3378e4289f
commit
760edeff1f
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class PublishTool extends React.Component {
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Prompt
|
<Prompt
|
||||||
when={hasChanged}
|
when={hasChanged}
|
||||||
message={SAVE}
|
message={(location) => location.pathname === '/' ? true : SAVE}
|
||||||
/>
|
/>
|
||||||
<PublishPreview isUpdate={isUpdate} uri={uri} />
|
<PublishPreview isUpdate={isUpdate} uri={uri} />
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|
Loading…
Reference in a new issue