diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_api/OnTheFly.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_api/OnTheFly.js index 3c58b67e9..d8f5700ff 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_api/OnTheFly.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_api/OnTheFly.js @@ -25,7 +25,8 @@ const getCivilities = () => }); const getGenders = () => - fetch('/api/1.0/main/gender.json').then(response => { + makeFetch("GET", '/api/1.0/main/gender.json'). + .then(response => { if (response.ok) { return response.json(); } throw Error('Error with request resource response'); }); @@ -69,7 +70,7 @@ const patchPerson = (id, body) => { }; export { - getCentersForPersonCreation, + getCentersForPersonCreation, getPerson, getPersonAltNames, getCivilities,