Skip to content

Commit

Permalink
Editor: Run validation only for edited posts
Browse files Browse the repository at this point in the history
A new post would not have original content against which to compare.
  • Loading branch information
aduth committed Jul 31, 2019
1 parent 44d7e5c commit dfa0d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function* setupEditor( post, edits, template ) {
edits,
template,
};
yield resetEditorBlocks( blocks, { validate: true } );
yield resetEditorBlocks( blocks, { validate: ! isNewPost } );
yield setupEditorState( post );
yield* __experimentalSubscribeSources();
}
Expand Down

0 comments on commit dfa0d03

Please sign in to comment.