We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a498f commit 1ee973eCopy full SHA for 1ee973e
1 file changed
editor/components/provider/index.js
@@ -52,9 +52,11 @@ class EditorProvider extends Component {
52
// Assume that we don't need to initialize in the case of an error recovery.
53
if ( ! props.recovery ) {
54
this.store.dispatch( setupEditor( props.post, this.settings ) );
55
- if ( props.autosave ) {
56
- this.store.dispatch( showAutosaveAlert( props.autosave ) );
57
- }
+ }
+
+ // Display a notice if an autosave exists.
58
+ if ( props.autosave ) {
59
+ this.store.dispatch( showAutosaveAlert( props.autosave ) );
60
}
61
62
0 commit comments