From b7b6ab8f096032f00ab3e0c4936fc6f84cd27b5a Mon Sep 17 00:00:00 2001 From: Gael Leblan Date: Fri, 30 Aug 2024 16:43:38 +0200 Subject: [PATCH] [frontend] Fix url for exercise --- openbas-front/src/actions/exercises/exercise-action.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbas-front/src/actions/exercises/exercise-action.ts b/openbas-front/src/actions/exercises/exercise-action.ts index 6b4f04a5c0..a0649ba155 100644 --- a/openbas-front/src/actions/exercises/exercise-action.ts +++ b/openbas-front/src/actions/exercises/exercise-action.ts @@ -36,7 +36,7 @@ export const searchExerciseInjects = (exerciseId: Exercise['exercise_id'], searc // -- IMPORT -- export const importXlsForExercise = (exerciseId: Exercise['exercise_id'], importId: string, input: InjectsImportInput) => { - const uri = `${EXERCISE_URI}/${exerciseId}/xls/${importId}/import`; + const uri = `${EXERCISE_URI}${exerciseId}/xls/${importId}/import`; return simplePostCall(uri, input) .then((response) => { const injectCount = response.data.total_injects; @@ -50,7 +50,7 @@ export const importXlsForExercise = (exerciseId: Exercise['exercise_id'], import }; export const dryImportXlsForExercise = (exerciseId: Exercise['exercise_id'], importId: string, input: InjectsImportInput) => { - const uri = `${EXERCISE_URI}/${exerciseId}/xls/${importId}/dry`; + const uri = `${EXERCISE_URI}${exerciseId}/xls/${importId}/dry`; return simplePostCall(uri, input) .then((response) => { return response;