Flowise/packages/ui
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
..
public Feature/Add PWA Functionality (#4672) 2025-06-22 15:27:09 +01:00
src fix: agentflow list refresh after deletion (Issue #5360) (#5473) 2025-11-23 17:15:41 +00:00
.env.example Added env vars to ui and api URL (#3141) 2024-09-24 15:28:25 +01:00
.npmignore
README-ZH.md Feature/agentflow v2 (#4298) 2025-05-10 10:21:26 +08:00
README.md Feature/agentflow v2 (#4298) 2025-05-10 10:21:26 +08:00
craco.config.js
index.html Feature/Add PWA Functionality (#4672) 2025-06-22 15:27:09 +01:00
jsconfig.json
package.json Release/3.0.11 (#5481) 2025-11-15 23:11:40 +00:00
vite.config.js Chore/update vite config (#4158) 2025-03-11 16:13:28 +00:00

README.md

Flowise UI

English | 中文

React frontend ui for Flowise.

Flowise

Install:

npm i flowise-ui

License

Source code in this repository is made available under the Apache License Version 2.0.