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: fallback to default value in computed props (#2755)

Bogdan Chadkin2a1d77b0b8c8
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
index 872303f5af..7dce70cac5 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
+++ b/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
@@ -104,7 +104,7 @@ const renderProperty = (
instanceId,
meta,
prop,
- computedValue: propValues.get(propName),
+ computedValue: propValues.get(propName) ?? meta.defaultValue,
propName,
readOnly,
deletable: deletable ?? false,