From 1c6c9f8be4bdd224bd7fb23cecb722b058164c25 Mon Sep 17 00:00:00 2001 From: Shashank Jarmale Date: Mon, 10 Nov 2025 16:24:15 -0800 Subject: [PATCH] Fix reprocessing form UI bug --- static/app/components/modals/reprocessEventModal.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/app/components/modals/reprocessEventModal.tsx b/static/app/components/modals/reprocessEventModal.tsx index ea7b068bbe5a85..3e1ace166f2dff 100644 --- a/static/app/components/modals/reprocessEventModal.tsx +++ b/static/app/components/modals/reprocessEventModal.tsx @@ -93,9 +93,10 @@ export function ReprocessingEventModal({ label={t('Number of events to be reprocessed')} help={t('If you set a limit, we will reprocess your most recent events.')} placeholder={t('Reprocess all events')} - onChange={(value: any) => - setMaxEvents(isNaN(value) ? undefined : Number(value)) - } + onChange={(value: any) => { + const num = Number(value); + setMaxEvents(value === '' || isNaN(num) ? undefined : num); + }} min={1} />