Skip to content

Commit

Permalink
HACKFEST-23: Add url encoding for var params
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejames committed Jul 10, 2023
1 parent be08a52 commit 7db2892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/frontends/variable-coverages/get-variable-coverages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export async function getVariableCoverages(

// get the UMM variable data for the concept IDs
const variableNames = (await getVariablesByIds(conceptIds, req.accessToken)).map((v) => v.umm.Name);
const varNameParam = variableNames.join(',');
const encodedVariableNames = variableNames.map((v) => encodeURIComponent(v));
const varNameParam = encodedVariableNames.join(',');
// get the associated collection ID for the variables (this assues they all are part of the same collection)
const collectionConceptId = (await getCollectionsForVariable(conceptIds[0], req.accessToken))[0].id;

Expand Down

0 comments on commit 7db2892

Please sign in to comment.