fix: column transformations not working (#10438)

This commit is contained in:
Shaurya Sharma 2024-07-30 09:17:20 +05:30 committed by GitHub
parent d92f30f984
commit 33fb94eb22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -484,7 +484,7 @@ export function Table({
// Single-level nested property
const [nestedKey, subKey] = nestedKeys;
const nestedObject = transformedObject?.[nestedKey] || { ...row[nestedKey] }; // Retain existing nested object
const newValue = resolveReferences(transformation, row[key], {
const newValue = resolveReferences(transformation, undefined, row[key], {
cellValue: row?.[nestedKey]?.[subKey],
rowData: row,
});
@ -496,7 +496,7 @@ export function Table({
transformedObject[nestedKey] = nestedObject;
} else {
// Non-nested property
transformedObject[key] = resolveReferences(transformation, row[key], {
transformedObject[key] = resolveReferences(transformation, undefined, row[key], {
cellValue: row[key],
rowData: row,
});