Skip to content

Commit

Permalink
dev-8345 Removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-DiPaolo committed Oct 22, 2024
1 parent 6acff03 commit 66b5682
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/components/EditorPanel/DataTableEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ const DataTableEditor: React.FC<DataTableProps> = ({ config, updateField, isDash

const excludeColumns = (section, subSection, fieldName, excludedColNames: string[]) => {
const newColumns = _.cloneDeep(config.columns)

const colNames: string[] = []
for (let colKey in newColumns) {
const col = newColumns[colKey]
colNames.push(col.name) // keep track of all column names
if (excludedColNames.includes(col.name)) {
// ensure all excluded columns are set to false
newColumns[colKey].dataTable = false
} else {
newColumns[colKey].dataTable = true
}
}
excludedColNames.forEach(colName => {
Expand Down

0 comments on commit 66b5682

Please sign in to comment.