Skip to content

Commit

Permalink
Merge pull request #1526 from cityofaustin/20659-export-cols
Browse files Browse the repository at this point in the history
check if export column exists before attempting download
  • Loading branch information
chiaberry authored Jan 16, 2025
2 parents 5b9a4bb + 6ceda62 commit 5c54777
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ const buildRecordEntry = (
: Object.keys(exportConfig);
// For each column in the export configuration
columnsToExport.forEach((column) => {
// check if column exists
if (!exportConfig[column]) {
return;
}
// column label and data formatting function
const { label, filter } = exportConfig[column];
// Determine the new column name, if available.
Expand Down

0 comments on commit 5c54777

Please sign in to comment.