File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/PaginatedTable Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ export const TableChunk = typedMemo(function TableChunk<T, F>({
6868 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
6969 const { noBatching} = usePaginatedTableState ( ) ;
7070
71- const preserveColsOrderInRequest = shouldSendColumnIds ( tableName ) ;
71+ const hasColumnsIdsInRequest = shouldSendColumnIds ( tableName ) ;
7272
7373 const columnsIds = React . useMemo (
7474 ( ) =>
75- //sort ids to prevent refetch if only order was changed
76- preserveColsOrderInRequest ? columns . map ( ( column ) => column . name ) . toSorted ( ) : [ ] ,
77- [ columns , preserveColsOrderInRequest ] ,
75+ // sort ids to prevent refetch if only order was changed
76+ hasColumnsIdsInRequest ? columns . map ( ( column ) => column . name ) . toSorted ( ) : [ ] ,
77+ [ columns , hasColumnsIdsInRequest ] ,
7878 ) ;
7979
8080 const queryParams = {
You can’t perform that action at this time.
0 commit comments