From 71a0377af46a47924c7f3acc7ede56f74b9ee9a5 Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Mon, 20 May 2024 09:14:05 +0200 Subject: [PATCH] Use dryRun unstead of importMode when making api call to old tracker API Since this is the accepted param --- src/pages/TEIImport/form-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/TEIImport/form-helper.js b/src/pages/TEIImport/form-helper.js index d7386cbb0..ce99b485d 100644 --- a/src/pages/TEIImport/form-helper.js +++ b/src/pages/TEIImport/form-helper.js @@ -29,7 +29,7 @@ const onImport = const apiBaseUrl = `${baseUrl}/api/` const endpoint = 'trackedEntityInstances.json' const params = [ - `importMode=${dryRun ? 'VALIDATE' : 'COMMIT'}`, + `dryRun=${dryRun}`, `identifier=${identifier}`, `importReportMode=${importReportMode}`, `preheatMode=${preheatMode}`,