trigger.dev
trigger.dev copied to clipboard
bug: Alerts page creates duplicate alerts when Save is clicked multiple times
Provide environment information
n/a
Describe the bug
On the Alerts page, clicking Save multiple times quickly creates multiple identical alert records. Expected behavior: only one alert should be created per intended save action (button should prevent repeat submissions and/or backend should enforce idempotency)
Reproduction repo
n/a
To reproduce
- Open Trigger.dev dashboard.
- Go to Alerts page.
- Create a new alert (fill valid fields).
- Click Save repeatedly in quick succession.
- Observe multiple duplicate alert records created.
Additional information
This appears more frequently on slower networks or higher latency connections, because the modal does not close immediately after the first click and the Save button remains interactable long enough for repeated submissions.
@ericallam Just following up on this whenever you have a chance. Thanks!