regle problemme
continuous-integration/drone/push Build encountered an error Details

master
Bastien OLLIER 2 years ago
parent b92ae332da
commit 50b4bd747b

@ -17,7 +17,7 @@ const NouveauDisplayPosts = () => {
if (!postsData) {
return <p>Loading...</p>;
}
try{
return (
<div>
<ul>
@ -30,6 +30,11 @@ const NouveauDisplayPosts = () => {
</ul>
</div>
);
}
catch (error){
return <p>Loading...</p>;
}
};
export default NouveauDisplayPosts;

@ -52,7 +52,7 @@ const PostNouvelleAffichage = ( { post } ) => {
if(!isLoading){
return <p></p>;
}
try {
return (
<li className='PostesProfilConteneur' key={post._id}>
{isLoading ? (
@ -84,6 +84,10 @@ const PostNouvelleAffichage = ( { post } ) => {
)}
</li>
);
}
catch (error){
return <p>Loading...</p>;
}
};

Loading…
Cancel
Save