Skip to content

Commit

Permalink
fix: uploadCSV
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Apr 4, 2023
1 parent 04e2d3a commit 7f0a59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/storefront/src/components/upload/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const parseEmptyData = (arr: string[]): ParseEmptyDataProps[] => {
const products = item.split(',')
return {
sku: products[0],
qty: products[1].replace(/[\r\n]/g, ''),
qty: products[1]?.replace(/[\r\n]/g, ''),
}
})
return tmpArr
Expand Down

0 comments on commit 7f0a59b

Please sign in to comment.