Skip to content

Commit

Permalink
Only return merged global styles data
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 10, 2024
1 parent 2fff473 commit 2ef52a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
[ postType, postId, isLargeViewport, renderingMode ]
);

const globalStylesData = useGlobalStylesData();
const { styles: globalStylesData } = useGlobalStylesData();

const settingsBlockPatterns =
settings.__experimentalAdditionalBlockPatterns ?? // WP 6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ export function useGlobalStylesData() {

return {
isReady: isBaseStylesReady && isUserStylesReady,
base: baseStyles ?? DEFAULT_STYLES,
user: userStyles ?? DEFAULT_STYLES,
merged: mergedStyles,
styles: mergedStyles,
};
}

0 comments on commit 2ef52a7

Please sign in to comment.