Skip to content

Commit

Permalink
fix: styling metadata array computing (#2060)
Browse files Browse the repository at this point in the history
## Proposed change

Current computing mechanism is not working for styling metadata 

## Related issues

- 🐛 Fixes #2061
  • Loading branch information
matthieu-crouzet committed Aug 14, 2024
2 parents 98481ae + 97543fa commit caad449
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface MigrationStylingData {
* Returns an array of styling metadata from a metadata file.
* @param content Content of a migration metadata file
*/
const getCssVariablesArray = (content: CssMetadata): CssVariable[] => Object.values(content.variables);
const getCssVariablesArray = (content: CssMetadata): CssVariable[] => Object.keys(content.variables).map((name) => ({...content.variables[name], name }));

const getCssVariableName = (cssVariable: CssVariable) => cssVariable.name;

Expand Down

0 comments on commit caad449

Please sign in to comment.