Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 18, 2021
1 parent b5b101d commit 18cdd2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-post/src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ function Editor( {
const styles = useMemo( () => {
// settings.styles can have styles that core adds.
// We don't want these to count as "theme styles".
const filteredStyles = settings.styles?.length ? settings.styles.filter( style => ! style.toSkip ) : [];
const filteredStyles = settings.styles?.length
? settings.styles.filter( ( style ) => ! style.toSkip )
: [];
return hasThemeStyles && filteredStyles.length
? settings.styles
: settings.defaultEditorStyles;
Expand Down

0 comments on commit 18cdd2e

Please sign in to comment.