From fbdf2d51e42df5bb3dc33d9e1191abf5c981f84e Mon Sep 17 00:00:00 2001 From: James Rees Date: Fri, 22 Sep 2017 09:54:33 +1000 Subject: [PATCH] Object keys get cast to Strings :( --- src/workers/jobs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/jobs.js b/src/workers/jobs.js index b3eb6b200..f09f9ec94 100644 --- a/src/workers/jobs.js +++ b/src/workers/jobs.js @@ -439,7 +439,7 @@ export async function exportCampaign(job) { Object.keys(allQuestions).forEach((stepId) => { let value = '' questionResponses.forEach((response) => { - if (response.interaction_step_id === stepId) { + if (response.interaction_step_id === Number(stepId)) { value = response.value } })