Skip to content

The open alternative to Salesforce, designed for AI.

Fix row background not changing to blue on selection (#6479)

SIDDAM VINAY0f69106558d9
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableCellsVisible.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableCellsVisible.tsx
index e6b75b26507..f7231116071 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableCellsVisible.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableCellsVisible.tsx
@@ -8,7 +8,7 @@ import { RecordTableCellWrapper } from '@/object-record/record-table/record-tabl
import { RecordTableTd } from '@/object-record/record-table/record-table-cell/components/RecordTableTd';
export const RecordTableCellsVisible = () => {
- const { isDragging } = useContext(RecordTableRowContext);
+ const { isDragging, isSelected } = useContext(RecordTableRowContext);
const { visibleTableColumnsSelector } = useRecordTableStates();
const visibleTableColumns = useRecoilValue(visibleTableColumnsSelector());
@@ -18,7 +18,7 @@ export const RecordTableCellsVisible = () => {
return (
<>
<RecordTableCellWrapper column={visibleTableColumns[0]} columnIndex={0}>
- <RecordTableTd>
+ <RecordTableTd isSelected={isSelected}>
<RecordTableCell />
</RecordTableTd>
</RecordTableCellWrapper>
@@ -29,7 +29,7 @@ export const RecordTableCellsVisible = () => {
column={column}
columnIndex={columnIndex + 1}
>
- <RecordTableTd>
+ <RecordTableTd isSelected={isSelected}>
<RecordTableCell />
</RecordTableTd>
</RecordTableCellWrapper>