Skip to content

Commit

Permalink
fixed to non disclose the non accessable bata on download
Browse files Browse the repository at this point in the history
  • Loading branch information
MSDrao committed Feb 4, 2025
1 parent 7658604 commit ea8230b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/src/components/DownloadMapData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ function flattenItem(obj, parentKey = '', result = {}) {
}
}
} else {
if (csvColumns.includes(newKey))
result[newKey] = obj[key];
if (csvColumns.includes(newKey)){
if(newKey === "Textmodel Snippet" && obj.citation.attribution == "Not open-access") {
result[newKey] = "N/A";
}else{
result[newKey] = obj[key];
}
}
}
}
}
Expand Down

0 comments on commit ea8230b

Please sign in to comment.