From 2ecf48d3c693b3ced03783b435092420e833ce29 Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Mon, 20 May 2024 09:14:05 +0200 Subject: [PATCH] fix: use dry run param when making api call to deprecated 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}`,