# Version 2.3.9 Dashboard Hard Fix

This patch fixes the `/admin` dashboard JavaScript error that prevented dropdowns and leads from loading.

## Root cause found

A leftover Call Events template fragment remained in `public/admin.html` after the call events section was removed.

This caused a browser JavaScript syntax error around:

`${esc(e.call_status || 'unknown')...`

Because the script failed to parse, none of the dashboard JavaScript ran:

- dropdowns did not populate
- leads did not load
- summary cards stayed blank
- the dashboard looked empty even if the backend had lead data

## What changed

- Removed the broken leftover Call Events template fragment.
- Confirmed the admin script passes `node --check`.
- Hard-coded default options into the Status, Service Type, and Source dropdowns.
- Made `setSelectOptions()` additive instead of destructive.
- Added fallback behavior if `/admin/api/options` fails.
- Added `/admin/api/dashboard-health` to verify backend dashboard data.
- Kept `/admin/api/leads-debug/recent`.

## After install

Hard refresh `/admin`.

Check:

- `/admin/api/dashboard-health`
- `/admin/api/options`
- `/admin/api/leads-debug/recent`
