diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index 12983bf..e4e0881 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -932,7 +932,7 @@ export default function SiteSettingsPage() { = 0 ? i : SAMPLING_RATE_OPTIONS.length - 1 })()} - onChange={(e) => + onChange={(e) => { + const v = parseInt(e.target.value, 10) + const i = Math.max(0, Math.min(SAMPLING_RATE_OPTIONS.length - 1, v)) setFormData({ ...formData, - replay_sampling_rate: SAMPLING_RATE_OPTIONS[parseInt(e.target.value, 10)], + replay_sampling_rate: SAMPLING_RATE_OPTIONS[i], }) - } + }} className="w-full h-2 bg-neutral-200 dark:bg-neutral-700 rounded-lg appearance-none cursor-pointer accent-brand-orange" /> -