File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export default function CippTable({
163
163
let tempColumns = actionsColumn ? columns . slice ( 0 , - 1 ) : [ ...columns ]
164
164
165
165
defaultColumnsArray . forEach ( ( columnName ) => {
166
- if ( ! tempColumns . find ( ( c ) => c . exportSelector === columnName ) ) {
166
+ if ( ! tempColumns . find ( ( c ) => c . exportSelector === columnName && c ?. omit !== true ) ) {
167
167
tempColumns . push ( {
168
168
name : columnName ,
169
169
selector : ( row ) => row [ columnName ] ,
@@ -713,9 +713,9 @@ export default function CippTable({
713
713
dataKeys ( ) . map ( ( item , idx ) => {
714
714
return (
715
715
< CDropdownItem key = { idx } onClick = { ( ) => addColumn ( item ) } >
716
- { updatedColumns . find ( ( o ) => o . exportSelector === item ) && (
717
- < FontAwesomeIcon icon = { faCheck } />
718
- ) } { ' ' }
716
+ { updatedColumns . find (
717
+ ( o ) => o . exportSelector === item && o ?. omit !== true ,
718
+ ) && < FontAwesomeIcon icon = { faCheck } /> } { ' ' }
719
719
{ item }
720
720
</ CDropdownItem >
721
721
)
You can’t perform that action at this time.
0 commit comments