Skip to content

Commit 04c8cfb

Browse files
authored
Merge pull request #2182 from JohnDuprey/dev
More omit checks
2 parents 72cccaf + 45bb37c commit 04c8cfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/tables/CippTable.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default function CippTable({
163163
let tempColumns = actionsColumn ? columns.slice(0, -1) : [...columns]
164164

165165
defaultColumnsArray.forEach((columnName) => {
166-
if (!tempColumns.find((c) => c.exportSelector === columnName)) {
166+
if (!tempColumns.find((c) => c.exportSelector === columnName && c?.omit !== true)) {
167167
tempColumns.push({
168168
name: columnName,
169169
selector: (row) => row[columnName],
@@ -713,9 +713,9 @@ export default function CippTable({
713713
dataKeys().map((item, idx) => {
714714
return (
715715
<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} />}{' '}
719719
{item}
720720
</CDropdownItem>
721721
)

0 commit comments

Comments
 (0)