Skip to content

Commit

Permalink
Fix favorites sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Jan 31, 2024
1 parent 7ec7f78 commit 09b2913
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@ const SitegenEditorPatternsSidebar = () => {
);
newPreviewSettings.settings.color.palette =
data.color.palette;
let blockGrammar = '';
[
'header',
'content',
'footer',
].forEach( ( part ) => {
if ( part in data ) {
blockGrammar +=
data[ part ];
}
} );
return (
<div
key={ data.slug }
Expand All @@ -348,7 +359,7 @@ const SitegenEditorPatternsSidebar = () => {
: 'custom__highlighted'
}
blockGrammer={
data.content
blockGrammar
}
viewportWidth={
1300
Expand Down

0 comments on commit 09b2913

Please sign in to comment.