Skip to content

Commit

Permalink
Merge pull request #29 from InseeFr/fix_url
Browse files Browse the repository at this point in the history
fix: remove / from path management-monitoring-infos
  • Loading branch information
nicolasTurban authored Jan 10, 2024
2 parents d7fe431 + 1f0e087 commit 7cb4f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "front-moog",
"version": "2.2.3",
"version": "2.2.4",
"private": true,
"dependencies": {
"@vtex/react-csv-parse": "^3.0.2",
Expand Down
10 changes: 5 additions & 5 deletions src/components/consultation/consultation.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ const Consultation = ({ roles, linkQuestionnaire, urlColemanPromotion }) => {
}, [motFiltre, activePage]);

const linkSiteMirroir = (obj) => {
const {
campagne: { idCampagne },
idUe,
} = obj;
const {
campagne: { idCampagne },
idUe,
} = obj;
myAxios()
.get(`${pathReadonly}${idCampagne}/survey-unit/${idUe}`)
.then((res) => {
Expand Down Expand Up @@ -205,7 +205,7 @@ const Consultation = ({ roles, linkQuestionnaire, urlColemanPromotion }) => {
const supprimerSuivi = async () => {
const deletion = async () => {
await myAxios()
.delete(pathInfoSuiviGestions + idSuiviASupprimer)
.delete(`${pathInfoSuiviGestions}/${idSuiviASupprimer}`)
.catch((error) => {
console.log(error);
});
Expand Down
3 changes: 1 addition & 2 deletions src/utils/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ export const longueurIdContactMax = 8;
/* Nombre de colonnes dans le fichier à importer */
export const nbChamps = [3, 4, 5];


/* path pour recherche */
export const pathConsultationFiltre = "/survey-units?filter1=";
/* path pour suppression d'un suivi */
export const pathUniteEnquete = "/survey-units";
/* path pour suppression d'un suivi */
export const pathInfoSuiviGestion = "/management-monitoring-info";
export const pathInfoSuiviGestions = "/management-monitoring-infos/";
export const pathInfoSuiviGestions = "/management-monitoring-infos";
/* path pour suppression d'un upload */
export const pathSuppressionUpload = "/uploads/";
/* path pour le post des infosuivigestion */
Expand Down

0 comments on commit 7cb4f8e

Please sign in to comment.