Skip to content

Commit

Permalink
off by 1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
huuaho committed Jun 11, 2024
1 parent 1a64c28 commit 1fee2e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/cart/customComponent/exportButton/exportButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ const ExportButtonView = (props,) => {
const appendString = 'drs://nci-crdc.datacommons.io/'
const processedStoreManifestPayload = data.filesInList.map((el) => {
const obj = {}
// - 1 to ignore the User Comments column
for (let i = 0; i < manifestData.keysToInclude.length - 1; i++) {
for (let i = 0; i < manifestData.keysToInclude.length; i++) {
if (manifestData.keysToInclude[i] === 'file_id') {
obj[manifestData.header[i]] = el && el[manifestData.keysToInclude[i]] ?
appendString + el[manifestData.keysToInclude[i]]
Expand Down

0 comments on commit 1fee2e9

Please sign in to comment.