diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js
index cf71c7e..8ded836 100644
--- a/src/components/DisplayPartnerSession.js
+++ b/src/components/DisplayPartnerSession.js
@@ -219,7 +219,7 @@ const DisplayPartnerSession = (props) => {
}
},
-
+
{ field: 'code_session', headerName: 'Code session', hide: false, minWidth: 200, flex: 1, renderCell: (params) => , },
{ field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => , },
@@ -1268,7 +1268,7 @@ const DisplayPartnerSession = (props) => {
setLoading(true);
axios.post(myurl, form).then(res => {
- setLoading(false);
+
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.message r_class = " + res.data.message);
@@ -1282,6 +1282,7 @@ const DisplayPartnerSession = (props) => {
alert(res.data.message)
}
+ setLoading(false);
}).catch((error) => {
setLoading(false);
console.warn('Not good man :( Getall_TrainingSession = ', error);