Skip to content

Commit

Permalink
Disregards template validity in the context of the FSE editor
Browse files Browse the repository at this point in the history
This is VERY much a hack around
WordPress/gutenberg#11681

Previously, it was fine to do this just once at the beginning. But we
discovered that it also happens when performing undo.
Granted, performing undo might do something else, but my best guess is
that it's related to the above issue.
  • Loading branch information
noahtallen authored and getdave committed Aug 13, 2019
1 parent dd46aca commit 04df03f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ const unsubscribe = subscribe( () => {
}
if ( select( 'core/editor' ).isValidTemplate() === false ) {
dispatch( 'core/editor' ).setTemplateValidity( true );
// should only need to do this once
unsubscribe();
}
} );

0 comments on commit 04df03f

Please sign in to comment.