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. |
||
|---|---|---|
| .. | ||
| account.ts | ||
| automation-rule.ts | ||
| balance-import.ts | ||
| banking.ts | ||
| budget.ts | ||
| categorization.ts | ||
| category.test.ts | ||
| category.ts | ||
| import.ts | ||
| index.d.ts | ||
| label.ts | ||
| language.ts | ||
| pricing.ts | ||
| transaction.ts | ||
| uuid.ts | ||
| vite-env.d.ts | ||