Skip to content

Commit cb2b331

Browse files
authored
fix(reprocessing): Fix reprocessing form UI bug (#103123)
**Before** - Entering a "Number of events to be reprocessed" value and then deleting it leaves the "Remaining events" section enabled <img width="582" height="180" alt="image" src="https://github.com/user-attachments/assets/be7453e2-d276-4059-89aa-9af8267159f3" /> **After** - The "Remaining events" section is enabled only if the "Number of events to be reprocessed" field has a value in it <img width="575" height="181" alt="image" src="https://github.com/user-attachments/assets/c6caf554-1754-4218-b4d0-d12158ca520a" />
1 parent 23618c5 commit cb2b331

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

static/app/components/modals/reprocessEventModal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ export function ReprocessingEventModal({
9393
label={t('Number of events to be reprocessed')}
9494
help={t('If you set a limit, we will reprocess your most recent events.')}
9595
placeholder={t('Reprocess all events')}
96-
onChange={(value: any) =>
97-
setMaxEvents(isNaN(value) ? undefined : Number(value))
98-
}
96+
onChange={(value: any) => {
97+
const num = Number(value);
98+
setMaxEvents(value === '' || isNaN(num) ? undefined : num);
99+
}}
99100
min={1}
100101
/>
101102

0 commit comments

Comments
 (0)