Files
Flowise/packages/ui/src
Siddharth Chauhan c9db81096a fix: agentflow list refresh after deletion (Issue #5360) (#5473)
* fix: agentflow list refresh after deletion (Issue #5360)

Root Cause:
When deleting an Agentflow from the list view, updateFlowsApi.request() was called without pagination parameters. This caused the backend to return a plain array instead of the expected { data: [], total: 0 } format, leading to a TypeError when accessing .data.length.

Solution:
- Created refreshAgentflows callback that includes current pagination state
- Passed callback through FlowListTable to FlowListMenu
- Updated handleDelete to use callback instead of direct API call
- Maintains backward compatibility for components without callback

Fixes #5360

* reverting

* add pagination support to FlowListMenu and FlowListTable

---------

Co-authored-by: Henry <hzj94@hotmail.com>
2025-11-23 17:15:41 +00:00
..
2025-10-02 12:19:06 +01:00
2025-10-02 12:19:06 +01:00
2025-05-27 07:29:42 +01:00
2025-05-27 07:29:42 +01:00
2025-10-29 11:33:27 +00:00
2025-05-10 10:21:26 +08:00
2025-05-10 10:21:26 +08:00
2025-05-27 07:29:42 +01:00
2025-05-27 07:29:42 +01:00
2023-04-06 22:17:34 +01:00