Skip to content

Commit

Permalink
Fixed Err: DSP update to check if data is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
bkop-ds committed Aug 30, 2024
1 parent 60c229c commit d9ace2e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions src/pages/uploaddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,15 @@ export const approvedFormSelect = async (csvData) => { //Is there a DSMP functio
document.getElementById("nextBtn").style.display = "none";
// const dsmpdata = csvData.data;
// const dsmpdataHeaders = csvData.headers;
const dsmpdataPDR = dsmpdata.filter((df) => ((df['repositories'] || []).includes('PDR')) && (df['dmsPlanType']).includes('Publication/Presentation'));
function filterForPDRPub(data) {
if (data.repositories && data.repositories.includes("PDR") && data.dmsPlanType && data.dmsPlanType.includes("Publication/Presentation")) {
return true;
} else {
return false;
}
}
const dsmpdataPDR = dsmpdata.filter(filterForPDRPub);
//const dsmpdataPDR = dsmpdata.filter((df) => ((df['repositories'] || []).includes('PDR')) && (df['dmsPlanType']).includes('Publication/Presentation'));
let dsmpdataPDR2 = [];
for(let item of dsmpdataPDR){
if (item.cas) {
Expand All @@ -249,7 +257,17 @@ export const approvedFormSelect = async (csvData) => { //Is there a DSMP functio
// console.log(value);
// }
// const dsmpdataHeaders = csvData.headers;
const dsmpdataPDR = dsmpdata.filter((df) => ((df['repositories'] || []).includes('DCEG')) && (df['dmsPlanType']).includes('Study'));
function filterForPDRStudy(data) {
if (data.repositories && data.repositories.includes("PDR") && data.dmsPlanType && data.dmsPlanType.includes("Study")) {
return true;
} else {
return false;
}
}

const dsmpdataPDR = dsmpdata.filter(filterForPDRStudy);
//console.log(dsmpdataPDRTest);
//const dsmpdataPDR = dsmpdata.filter((df) => ((df["repositories"] || []).includes("DCEG")) && (df["dmsPlanType"]).includes("Study"));
createFilter(dsmpdataPDR, dsmpdataHeaders);
await populateApprovedSelect(dsmpdataPDR, dsmpdataHeaders);
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const submitterFolder = 162222418449;

export const dataPlatformFolder = 196554876811;

export const dataPlatformDataFolder = 239899508915
export const dataPlatformDataFolder = 156698557621;//239899508915

export const publicDataFolder = 259664212144;

Expand Down

0 comments on commit d9ace2e

Please sign in to comment.