Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make sure it doesn't break if current theme is not ready yet (#55858)
  • Loading branch information
renatho authored and mikachan committed Nov 5, 2023
commit 0ac4d37499e6b929e563a08fe6f8e860e8599589
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