diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index c57daa7..c61fa0f 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -6448,10 +6448,10 @@ const DisplayPartnerSession = (props) => { const [p_filtre2_value, setp_filtre2_value] = useState(""); function clean_all_filters() { - setp_filtre1(); - setp_filtre1_value(); - setp_filtre2(); - setp_filtre2_value(); + setp_filtre1(""); + setp_filtre1_value(""); + setp_filtre2(""); + setp_filtre2_value(""); setgridline_id(''); setsequence_gridline_id(""); diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js index 2d69900..1101c06 100644 --- a/src/components/DisplayPartnerStagiaires.js +++ b/src/components/DisplayPartnerStagiaires.js @@ -63,17 +63,17 @@ const DisplayPartnerStagiaires = (props) => { const [selectionModel, setSelectionModel] = React.useState([]); - const [p_filtre1, setp_filtre1] = useState(); - const [p_filtre1_value, setp_filtre1_value] = useState(); + const [p_filtre1, setp_filtre1] = useState(""); + const [p_filtre1_value, setp_filtre1_value] = useState(""); - const [p_filtre2, setp_filtre2] = useState(); - const [p_filtre2_value, setp_filtre2_value] = useState(); + const [p_filtre2, setp_filtre2] = useState(""); + const [p_filtre2_value, setp_filtre2_value] = useState(""); - const [p_filtre3, setp_filtre3] = useState(); - const [p_filtre3_value, setp_filtre3_value] = useState(); + const [p_filtre3, setp_filtre3] = useState(""); + const [p_filtre3_value, setp_filtre3_value] = useState(""); - const [p_filtre4, setp_filtre4] = useState(); - const [p_filtre4_value, setp_filtre4_value] = useState(); + const [p_filtre4, setp_filtre4] = useState(""); + const [p_filtre4_value, setp_filtre4_value] = useState(""); const filters = [ { value: 'code_session', label: 'Code Session' }, @@ -678,17 +678,17 @@ const DisplayPartnerStagiaires = (props) => { function clean_all_filters() { - setp_filtre1(); - setp_filtre1_value(); + setp_filtre1(""); + setp_filtre1_value(""); - setp_filtre2(); - setp_filtre2_value(); + setp_filtre2(""); + setp_filtre2_value(""); - setp_filtre3(); - setp_filtre3_value(); + setp_filtre3(""); + setp_filtre3_value(""); - setp_filtre4(); - setp_filtre4_value(); + setp_filtre4(""); + setp_filtre4_value(""); setgridline_id(''); setselected_row_data_json_age(''); @@ -5370,6 +5370,16 @@ const DisplayPartnerStagiaires = (props) => { ] + const New_Option_Filter = [ + { "id": "email", "label": "Email ", "value": "email" }, + { "id": "nom", "label": "Nom ", "value": "nom" }, + { "id": "code_session", "label": "Code Session", "value": "code_session" }, + { "id": "class_title", "label": "Titre Formation", "value": "class_title" }, + { "id": "client_nom", "label": "Lié au Client (nom client) ", "value": "client_nom" }, + { "id": "", "label": "", "value": "" }, + { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. + ] + return (