@ni/nimble-components 18.6.1 → 18.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28738,7 +28738,13 @@
|
|
|
28738
28738
|
const generatedColumns = this.columns.map(column => {
|
|
28739
28739
|
const columnDef = {
|
|
28740
28740
|
id: column.internalUniqueId,
|
|
28741
|
-
|
|
28741
|
+
accessorFn: (data) => {
|
|
28742
|
+
const fieldName = column.operandDataRecordFieldName;
|
|
28743
|
+
if (typeof fieldName !== 'string') {
|
|
28744
|
+
return undefined;
|
|
28745
|
+
}
|
|
28746
|
+
return data[fieldName];
|
|
28747
|
+
},
|
|
28742
28748
|
sortingFn: getTanStackSortingFunction(column.sortOperation)
|
|
28743
28749
|
};
|
|
28744
28750
|
return columnDef;
|