diff --git a/Site Web/client/src/components/Post/DisplayPost/NouveauDisplayPosts.js b/Site Web/client/src/components/Post/DisplayPost/NouveauDisplayPosts.js
index d928176f..e01197d7 100644
--- a/Site Web/client/src/components/Post/DisplayPost/NouveauDisplayPosts.js
+++ b/Site Web/client/src/components/Post/DisplayPost/NouveauDisplayPosts.js
@@ -13,7 +13,8 @@ const NouveauDisplayPosts = () => {
useEffect(() => {
dispatch(getPosts());
},[dispatch])
-
+ console.log("datapost");
+ console.log(postsData);
if (!postsData) {
return
Loading...
;
}
diff --git a/Site Web/client/src/components/Post/PostNouvelleAffichage.js b/Site Web/client/src/components/Post/PostNouvelleAffichage.js
index 2889b0b6..db02316b 100644
--- a/Site Web/client/src/components/Post/PostNouvelleAffichage.js
+++ b/Site Web/client/src/components/Post/PostNouvelleAffichage.js
@@ -49,9 +49,6 @@ const PostNouvelleAffichage = ( { post } ) => {
!isEmpty(usersData[0]) && setIsLoading(false)
})
- if(!isLoading){
- return
;
- }
return (
diff --git a/Site Web/client/src/components/UserProfil/NavigationProfil/DossiersPersonnels.js b/Site Web/client/src/components/UserProfil/NavigationProfil/DossiersPersonnels.js
index f1b7b7fd..abec1e2f 100644
--- a/Site Web/client/src/components/UserProfil/NavigationProfil/DossiersPersonnels.js
+++ b/Site Web/client/src/components/UserProfil/NavigationProfil/DossiersPersonnels.js
@@ -5,7 +5,6 @@ import DiplayPostDossier from "../../Post/DisplayPost/DiplayPostDossier";
const DossiersPersonnels=()=>{
-
return(
diff --git a/Site Web/client/src/pages/Profil.js b/Site Web/client/src/pages/Profil.js
index 4d4632f1..7d578a18 100644
--- a/Site Web/client/src/pages/Profil.js
+++ b/Site Web/client/src/pages/Profil.js
@@ -27,7 +27,7 @@ const Profil = () => {
}
fetchData();
}, [uid]);
-
+
const handleModals = (e) => {
if (e.target.id === "DossierPersonnels") {
diff --git a/Site Web/client/src/reducers/post.reducer.js b/Site Web/client/src/reducers/post.reducer.js
index 664c056d..2c3194f8 100644
--- a/Site Web/client/src/reducers/post.reducer.js
+++ b/Site Web/client/src/reducers/post.reducer.js
@@ -3,8 +3,7 @@ import { createSlice } from "@reduxjs/toolkit";
export const postSlice = createSlice({
name: "post",
initialState: {
- post : {
- },
+ post : null,
},
reducers: {
setPostData: (state,action) => {