From 09b29138a1f953702b645222727238f18e836d74 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 31 Jan 2024 18:00:04 +0530 Subject: [PATCH] Fix favorites sidebar --- .../components/SitegenEditorPatterns/Sidebar.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js b/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js index 309514205..9c96c9c08 100644 --- a/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js +++ b/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js @@ -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 (
{ : 'custom__highlighted' } blockGrammer={ - data.content + blockGrammar } viewportWidth={ 1300