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: stop failing when retrieve mdn url for css variables (#4432)

Bogdan Chadkin65e58d719a0b
diff --git a/apps/builder/app/builder/features/style-panel/shared/configs.ts b/apps/builder/app/builder/features/style-panel/shared/configs.ts
index 32eea4ba36..c0f8acd143 100644
--- a/apps/builder/app/builder/features/style-panel/shared/configs.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/configs.ts
@@ -54,7 +54,8 @@ export const styleConfigByName = (propertyName: StyleProperty): StyleConfig => {
const keywords = keywordValues[property] || [];
const label = humanizeString(property);
- const propertyData = properties[property];
+ // property data does not exist for css custom properties
+ const propertyData = properties[property] ?? {};
const result = {
label,