File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ export const NeoTableChart = (props: ChartProps) => {
112
112
return key != 'id' ? key : `${ key } ` ;
113
113
} ;
114
114
115
- const actionableFields = actionsRules . map ( ( r ) => r . field ) ;
116
-
115
+ const actionableFields = actionsRules . filter ( ( r ) => r . condition !== 'rowCheck' ) . map ( ( r ) => r . field ) ;
117
116
const columns = transposed
118
117
? [ records [ 0 ] . keys [ 0 ] ] . concat ( records . map ( ( record ) => record . _fields [ 0 ] ?. toString ( ) || '' ) ) . map ( ( key , i ) => {
119
118
const uniqueKey = `${ String ( key ) } _${ i } ` ;
@@ -131,7 +130,9 @@ export const NeoTableChart = (props: ChartProps) => {
131
130
actionableFields . includes ( key )
132
131
) ;
133
132
} )
134
- : records [ 0 ] . keys . map ( ( key , i ) => {
133
+ : records [ 0 ] &&
134
+ records [ 0 ] . keys &&
135
+ records [ 0 ] . keys . map ( ( key , i ) => {
135
136
const value = records [ 0 ] . get ( key ) ;
136
137
if ( columnWidthsType == 'Relative (%)' ) {
137
138
return ApplyColumnType (
You can’t perform that action at this time.
0 commit comments