getCategoryColorClasses returned colorMap[color] directly, so a category whose color is not one of the known CATEGORY_COLORS (e.g. a legacy or out-of-enum value) yielded undefined. Callers such as the transaction categorizer command palette then read .bg off undefined, throwing 'TypeError: Cannot read properties of undefined (reading "bg")' and crashing the page (Sentry PHP-LARAVEL-4H). Mirror the existing guard in getCategoryChartColor by falling back to the gray classes when the color is not in the map. |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| views | ||