Skip to content

Commit fa8733c

Browse files
committed
chore(tables): rename rowSelectionChanged to cellRangeRowChanged
The helper compares NormalizedSelection (cell-range) state for a given row, not RowSelection. The old name collided with the new row-selection discriminated union and read ambiguously.
1 parent 0f986cf commit fa8733c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ interface DataRowProps {
30403040
workflowNameById: Record<string, string>
30413041
}
30423042

3043-
function rowSelectionChanged(
3043+
function cellRangeRowChanged(
30443044
rowIndex: number,
30453045
colCount: number,
30463046
prev: NormalizedSelection | null,
@@ -3103,7 +3103,7 @@ function dataRowPropsAreEqual(prev: DataRowProps, next: DataRowProps): boolean {
31033103
return false
31043104
}
31053105

3106-
return !rowSelectionChanged(
3106+
return !cellRangeRowChanged(
31073107
prev.rowIndex,
31083108
prev.columns.length,
31093109
prev.normalizedSelection,

0 commit comments

Comments
 (0)