Only shows the Loading component when there is no search value

This commit is contained in:
gaba
2017-04-25 14:28:37 -05:00
parent 5db9ea6520
commit 10cd53b40b
@@ -47,7 +47,7 @@ const People = ({isFetching, commenters, searchValue, onSearchChange, ...props})
</div>
</div>
<div className={styles.mainContent}>
{ isFetching && <Loading /> }
{ isFetching && (searchValue === null) && <Loading /> }
{
hasResults
? <Table