Skip to content

Commit f08286b

Browse files
Fix naming
1 parent 5544ab3 commit f08286b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/PaginatedTable/TableChunk.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 = {

0 commit comments

Comments
 (0)