mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Use accessor instead of headers for matching cell data
This commit is contained in:
parent
dd3dc82f01
commit
d6525b6bf7
1 changed files with 3 additions and 2 deletions
|
|
@ -677,11 +677,12 @@ export function Table({
|
|||
>
|
||||
{row.cells.map((cell) => {
|
||||
let cellProps = cell.getCellProps();
|
||||
|
||||
if (componentState.changeSet) {
|
||||
if (componentState.changeSet[cell.row.index]) {
|
||||
|
||||
if (_.get(componentState.changeSet[cell.row.index], cell.column.Header, undefined) !== undefined) {
|
||||
const accessor = columnData.find(column => column.id === cell.column.id)?.accessor;
|
||||
|
||||
if (_.get(componentState.changeSet[cell.row.index], accessor, undefined) !== undefined) {
|
||||
console.log('componentState.changeSet', componentState.changeSet);
|
||||
cellProps.style.backgroundColor = '#ffffde';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue