We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ff81e1 + 5f37c97 commit af8e930Copy full SHA for af8e930
1 file changed
src/pages/workspace/companyCards/addNew/CompanyCardsImportedPage.tsx
@@ -124,8 +124,10 @@ function CompanyCardsImportedPage({route}: CompanyCardsImportedPageProps) {
124
const columns = spreadsheet?.data ?? [];
125
const rows: string[][] = [];
126
if (columns.length > 0) {
127
- const startRowIndex = spreadsheet?.containsHeader ? 1 : 0;
128
- for (let rowIndex = startRowIndex; rowIndex < (columns.at(0)?.length ?? 0); rowIndex++) {
+ if (!spreadsheet?.containsHeader) {
+ rows.push(columnMappings);
129
+ }
130
+ for (let rowIndex = 0; rowIndex < (columns.at(0)?.length ?? 0); rowIndex++) {
131
const row: string[] = [];
132
for (const column of columns) {
133
row.push(column.at(rowIndex) ?? '');
0 commit comments