Skip to content

Commit

Permalink
fix: Column heading mismatch issue (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Aug 24, 2023
2 parents 2ed1e5d + 2caa13e commit 258b603
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class DoReview {
return acc;
}, {});
const properties: Record<string, unknown> = mappings.reduce((acc, mapping) => {
acc[mapping.columnHeading] = this.getProperty(formattedColumns[mapping.column._columnId]);
acc[mapping.column.key] = this.getProperty(formattedColumns[mapping.column._columnId]);

return acc;
}, {});
Expand All @@ -246,7 +246,7 @@ export class DoReview {
// setting uniqueItems to empty set to avoid error
mappings.forEach((mapping) => {
if (formattedColumns[mapping.column._columnId].isUnique) {
uniqueItems[mapping.columnHeading] = new Set();
uniqueItems[mapping.column.key] = new Set();
}
});

Expand Down

0 comments on commit 258b603

Please sign in to comment.