diff --git a/src/app/(dashboard)/assign-zone-project/AffectationsFilter.jsx b/src/app/(dashboard)/assign-zone-project/AffectationsFilter.jsx
index 9d9c2224804cc518671a6e7fa659f59b3d89bbba..0fe90257abd8ec687345b3033229257446c0f713 100644
--- a/src/app/(dashboard)/assign-zone-project/AffectationsFilter.jsx
+++ b/src/app/(dashboard)/assign-zone-project/AffectationsFilter.jsx
@@ -13,7 +13,7 @@ const AffectationsFilter = memo(function Page({ setFilter, filter, zones, projec
// "nom": "weleaf",
// "id": 1
// }
-
+ console.log("filterr", filter)
const handleResetFilters = (event) => {
const value = event.target.value
setFilter({ semaines: [], jours: [], projects: [], zones: [] })
@@ -168,7 +168,7 @@ const AffectationsFilter = memo(function Page({ setFilter, filter, zones, projec
isSearchable={true}
value={filter.zones || ""}
isMulti
- name="jours"
+ name="zones"
onChange={handleZoneChange}
options={zones.map((element) => ({ label: 'Zone:'+ element.nomZone +' - '+ 'Étage:' +element.numeroEtage , value: element.id }))}
styles={
diff --git a/src/app/(dashboard)/assign-zone-project/page.jsx b/src/app/(dashboard)/assign-zone-project/page.jsx
index e7a343c4c6250fde953bf70a2a9b2505e258a558..c9484c0ff1068b79421a715815236496f82448af 100644
--- a/src/app/(dashboard)/assign-zone-project/page.jsx
+++ b/src/app/(dashboard)/assign-zone-project/page.jsx
@@ -39,7 +39,6 @@ const AffectingZoneProject = () => {
await fetchRequest(`/zoaning/distinct-projects-zones/` ,{ method: 'GET' }
)
if (isSuccess) {
- console.log("getDistinctsProjectsAndZones", data)
setProjects(data.projects)
setZones(data.zones)
} else {
@@ -61,7 +60,6 @@ const AffectingZoneProject = () => {
}, [])
-
useEffect(() => {
// this function is to detect if there is a project that is not fully affected and return the corresponding data to use
@@ -251,7 +249,6 @@ const AffectingZoneProject = () => {
}
- console.log("listProjectsAffected", listProjectsAffected)
return (
<>