Skip to content

Deleting an Agentflow from the List view won't show the updates List view #5360

@rKathofer

Description

@rKathofer

Describe the bug

When deleting an AgentFlow from the list view using the options dropdown, the list does not refresh correctly.
Instead of showing the updated list, it appears empty until the page is manually reloaded.

To Reproduce

  1. Go to the Agentflows page
  2. Select the list view
  3. Try to delete an Agentflow
  4. Observe, that the Agentflow list is not shown anymore, and a javascript error can be seen:
index.jsx:167 TypeError: Cannot read properties of undefined (reading 'length')

Expected behavior

After deleting an AgentFlow, the list should automatically refresh and display the remaining entries.

Screenshots

Image

Flow

No response

Use Method

pnpm start

Flowise Version

No response

Operating System

None

Browser

None

Additional context

It seems that when refreshing getAllAgentflows.data in the useEffect within agentflows/index.jsx, no paging parameters are provided.
As a result, the function returns a plain array instead of the expected object structure { data: [], total: 0 }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededuiIssues or features related to ui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions