Sitecore / developer-portal

Open source repo for the Sitecore Developer Portal (https://developers.sitecore.com)
https://developers.sitecore.com
Apache License 2.0
30 stars 51 forks source link

Changelog: TypeError: Cannot read properties of undefined (reading 'toLowerCase') #803

Closed markvanaalst closed 1 month ago

markvanaalst commented 1 month ago

TypeError: Cannot read properties of undefined (reading 'toLowerCase')

src\components\changelog\ChangelogItemMeta.tsx (26:20) @ toLowerCase

  24 |
  25 |   const colorScheme = (changeType: string) => {
> 26 |     if (changeType.toLowerCase() == 'improvement') return 'primary';
     |                    ^
  27 |     if (changeType.toLowerCase() == 'new feature') return 'success';
  28 |     if (changeType.toLowerCase() == 'resolved') return 'orange';