Skip to content

Multiple Chatflows Created When Save/Create Button Is Clicked Repeatedly #6502

@akshat6749

Description

@akshat6749

Describe the bug

When creating a new chatflow, rapidly clicking the Save/Create button multiple times before the first request completes results in multiple chatflows being created.

This appears to be caused by duplicate requests being accepted while the UI is still processing the initial action.

To Reproduce

  1. Go to Chatflows.
  2. Create a new chatflow (or duplicate an existing one).
  3. Click Save/Create repeatedly in quick succession before the UI finishes processing.
  4. Observe that multiple chatflows are created.

Expected behavior

Only a single chatflow should be created regardless of how many times the button is clicked while the request is pending.

Possible protections:

  • Disable the button after the first click.
  • Show a loading state/spinner.
  • Add backend idempotency or duplicate-request protection.

Screenshots

No response

Flow

No response

Use Method

None

Flowise Version

No response

Operating System

None

Browser

None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions