Skip to content

Commit 65e58d7

Browse files
authored
fix: stop failing when retrieve mdn url for css variables (#4432)
Fixes #4431
1 parent b8a341c commit 65e58d7

File tree

1 file changed

+2
-1
lines changed
  • apps/builder/app/builder/features/style-panel/shared

1 file changed

+2
-1
lines changed

apps/builder/app/builder/features/style-panel/shared/configs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export const styleConfigByName = (propertyName: StyleProperty): StyleConfig => {
5454

5555
const keywords = keywordValues[property] || [];
5656
const label = humanizeString(property);
57-
const propertyData = properties[property];
57+
// property data does not exist for css custom properties
58+
const propertyData = properties[property] ?? {};
5859

5960
const result = {
6061
label,

0 commit comments

Comments
 (0)