diff --git a/packages/netlify-cms-core/src/components/Editor/Editor.js b/packages/netlify-cms-core/src/components/Editor/Editor.js index 3bb5408a..0f66e90e 100644 --- a/packages/netlify-cms-core/src/components/Editor/Editor.js +++ b/packages/netlify-cms-core/src/components/Editor/Editor.js @@ -237,9 +237,9 @@ class Editor extends React.Component { }; deleteBackup() { - const { deleteLocalBackup, collection, slug } = this.props; + const { deleteLocalBackup, collection, slug, newEntry } = this.props; this.createBackup.cancel(); - deleteLocalBackup(collection, slug); + deleteLocalBackup(collection, !newEntry && slug); } handlePersistEntry = async (opts = {}) => {