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

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

Loading…
Cancel
Save