Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix style panel search error

Sultanb574dc34278c
diff --git a/apps/designer/app/designer/features/style-panel/style-settings.tsx b/apps/designer/app/designer/features/style-panel/style-settings.tsx
index 10889df162..a66ee2083c 100644
--- a/apps/designer/app/designer/features/style-panel/style-settings.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-settings.tsx
@@ -110,19 +110,18 @@ export const StyleSettings = ({
? true
: appliesTo(styleConfig, currentStyle);
const isRendered = didRender(category, styleConfig);
+ const element = {
+ ...rest,
+ setProperty,
+ currentStyle,
+ styleConfig,
+ category,
+ };
+
+ sectionStyle[styleConfig.property] = element;
// @todo remove isRendered once spacing section is converted to a section
if (isInCategory && isApplicable && isRendered === false) {
- const element = {
- ...rest,
- setProperty,
- currentStyle,
- styleConfig,
- category,
- };
-
- sectionStyle[styleConfig.property] = element;
-
// We are making a separate array of properties which come after the "moreFrom"
// so we can make them collapsable
if (