From f059b99d1cc4cd10b0fd45af7cf6da6f173080e2 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 instead of import mode 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}`,