Skip to content

bug: Alerts page creates duplicate alerts when Save is clicked multiple times #3455

@isshaddad

Description

@isshaddad

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

  1. Open Trigger.dev dashboard.
  2. Go to Alerts page.
  3. Create a new alert (fill valid fields).
  4. Click Save repeatedly in quick succession.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions