mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-10 21:05:11 +08:00
fix: remove 10-item display limit in Agent Canvas configuration tables (#13049)
## Description This PR fixes an issue where the input and variable configuration tables in the Agent Canvas (specifically for **Begin**, **UserFillUp**, and **Invoke** nodes) were truncated at 10 items. **Root Cause:** The tables utilized `@tanstack/react-table` with `getPaginationRowModel()` enabled. Since the default page size is 10 and no pagination UI controls were implemented, users could not access items beyond the 10th row. **Solution:** Removed `getPaginationRowModel` from the table configurations. These lists (inputs/variables) are typically short, so rendering all items in a single scrollable view is the intended behavior. * Modified `query-table.tsx` * Modified `variable-table.tsx` ## How to verify 1. Create a **Begin**, **UserFillUp**, or **Invoke** node in the Agent Canvas. 2. Add more than 10 input items or variables. 3. Verify that all items are visible in the list and not truncated at the 10th item. ## What kind of change does this PR introduce? * [x] Bugfix
This commit is contained in:
@ -8,7 +8,6 @@ import {
|
||||
flexRender,
|
||||
getCoreRowModel,
|
||||
getFilteredRowModel,
|
||||
getPaginationRowModel,
|
||||
getSortedRowModel,
|
||||
useReactTable,
|
||||
} from '@tanstack/react-table';
|
||||
@ -135,7 +134,6 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) {
|
||||
onSortingChange: setSorting,
|
||||
onColumnFiltersChange: setColumnFilters,
|
||||
getCoreRowModel: getCoreRowModel(),
|
||||
getPaginationRowModel: getPaginationRowModel(),
|
||||
getSortedRowModel: getSortedRowModel(),
|
||||
getFilteredRowModel: getFilteredRowModel(),
|
||||
onColumnVisibilityChange: setColumnVisibility,
|
||||
|
||||
@ -8,7 +8,6 @@ import {
|
||||
flexRender,
|
||||
getCoreRowModel,
|
||||
getFilteredRowModel,
|
||||
getPaginationRowModel,
|
||||
getSortedRowModel,
|
||||
useReactTable,
|
||||
} from '@tanstack/react-table';
|
||||
@ -135,7 +134,6 @@ export function VariableTable({
|
||||
onSortingChange: setSorting,
|
||||
onColumnFiltersChange: setColumnFilters,
|
||||
getCoreRowModel: getCoreRowModel(),
|
||||
getPaginationRowModel: getPaginationRowModel(),
|
||||
getSortedRowModel: getSortedRowModel(),
|
||||
getFilteredRowModel: getFilteredRowModel(),
|
||||
onColumnVisibilityChange: setColumnVisibility,
|
||||
|
||||
Reference in New Issue
Block a user