problemme regler profil
continuous-integration/drone/push Build was killed Details

master
Bastien OLLIER 2 years ago
parent 78340277f2
commit 6c8440756c

@ -22,8 +22,6 @@ const MiniProfil = ({uid} ) => {
return <p>Loading...</p>;
}
return (
<div className="ListReco">
<div className="UtiReco">

@ -26,15 +26,15 @@ const NouveauDisplayPosts = () => {
return () => window.removeEventListener('scroll',loadMore);
}, [loadPost,dispatch,count])
if (!loadPost) {
if (loadPost || (postsData === null || isEmpty(postsData)) ) {
return <p>Loading...</p>;
}
return (
<div>
<ul>
{!isEmpty(postsData[0]) &&
postsData.map((post) => {
{ postsData === null && !isEmpty(postsData[0]) && postsData.map((post) => {
return <Post post={post} key={post._id}/>
})}
</ul>

@ -49,6 +49,10 @@ const PostNouvelleAffichage = ( { post } ) => {
!isEmpty(usersData[0]) && setIsLoading(false)
})
if(!isLoading){
return <p></p>;
}
return (
<li className='PostesProfilConteneur' key={post._id}>
{isLoading ? (

Loading…
Cancel
Save