Skip to content

Commit

Permalink
fix: stop failing when retrieve mdn url for css variables
Browse files Browse the repository at this point in the history
Fixes #4431
  • Loading branch information
TrySound committed Nov 16, 2024
1 parent 260aff7 commit 7563d0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7563d0e

Please sign in to comment.