Skip to content

Commit

Permalink
Make sure it doesn't break if current theme is not ready yet (#55858)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho authored and mikachan committed Nov 5, 2023
1 parent 25e9300 commit 07dd43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/pattern/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const PatternEdit = ( { attributes, clientId } ) => {
);

const currentThemeStylesheet = useSelect(
( select ) => select( coreStore ).getCurrentTheme().stylesheet
( select ) => select( coreStore ).getCurrentTheme()?.stylesheet
);

const { replaceBlocks, __unstableMarkNextChangeAsNotPersistent } =
Expand Down

0 comments on commit 07dd43b

Please sign in to comment.