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: compute styles for collection children correctly (#2804)

Bogdan Chadkin2daaafd3e250
diff --git a/apps/builder/app/builder/features/style-panel/parent-style.ts b/apps/builder/app/builder/features/style-panel/parent-style.ts
index 1a3a7e518c..ffb5dcf806 100644
--- a/apps/builder/app/builder/features/style-panel/parent-style.ts
+++ b/apps/builder/app/builder/features/style-panel/parent-style.ts
@@ -21,7 +21,8 @@ export const useParentStyle = () => {
const meta = component
? registeredComponentMetas.get(component)
: undefined;
- if (meta?.stylable !== false) {
+ // ignore instances without meta and unstylable components
+ if (meta !== undefined && meta.stylable !== false) {
break;
}
}