Web: People: Fixed the error of returning to the list of users immediately after refreshing the page and switching to the profile view

This commit is contained in:
TatianaLopaeva 2020-10-16 14:54:13 +03:00
parent 89b2ace28b
commit acfe89b4f4

View File

@ -64,6 +64,9 @@ class SectionBodyContent extends React.PureComponent {
if (!isLoaded) return;
if(peopleList.length <= 0) setIsLoaded();
setIsLoaded(false)
fetchPeople(filter)
.then(() => isLoaded && setIsLoaded(true))
.catch((error) => {