06/06/2024 - 12h

recette2
cherif 2024-06-06 12:15:35 +02:00
parent 806708a266
commit 19c2d6ee3f
1 changed files with 3 additions and 2 deletions

View File

@ -219,7 +219,7 @@ const DisplayPartnerSession = (props) => {
} }
}, },
{ field: 'code_session', headerName: 'Code session', hide: false, minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, }, { field: 'code_session', headerName: 'Code session', hide: false, minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => <ExpandableCell_50 {...params} />, }, { field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => <ExpandableCell_50 {...params} />, },
@ -1268,7 +1268,7 @@ const DisplayPartnerSession = (props) => {
setLoading(true); setLoading(true);
axios.post(myurl, form).then(res => { axios.post(myurl, form).then(res => {
setLoading(false);
if (String(res.data.status) === String("true")) { if (String(res.data.status) === String("true")) {
//console.log(" In Getall_TrainingSession res.data.status = " + res.data.status); //console.log(" In Getall_TrainingSession res.data.status = " + res.data.status);
//console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message); //console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message);
@ -1282,6 +1282,7 @@ const DisplayPartnerSession = (props) => {
alert(res.data.message) alert(res.data.message)
} }
setLoading(false);
}).catch((error) => { }).catch((error) => {
setLoading(false); setLoading(false);
console.warn('Not good man :( Getall_TrainingSession = ', error); console.warn('Not good man :( Getall_TrainingSession = ', error);