Fix metric category names to match TypeScript types
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m13s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s

Changed 'equity' to 'disadvantaged' and 'trends' to '3yr' to match
the MetricDefinition category type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-02-04 11:53:26 +00:00
parent 2a39cfca82
commit cc4e95b383
2 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ export function RankingsView({
))}
</optgroup>
<optgroup label="Equity (Disadvantaged)">
{metrics.filter(m => m.category === 'equity').map((metric) => (
{metrics.filter(m => m.category === 'disadvantaged').map((metric) => (
<option key={metric.key} value={metric.key}>{metric.label}</option>
))}
</optgroup>
@@ -134,7 +134,7 @@ export function RankingsView({
))}
</optgroup>
<optgroup label="3-Year Trends">
{metrics.filter(m => m.category === 'trends').map((metric) => (
{metrics.filter(m => m.category === '3yr').map((metric) => (
<option key={metric.key} value={metric.key}>{metric.label}</option>
))}
</optgroup>