Only shows the Loading component when there is no search value

This commit is contained in:
gaba committed 2017-04-25 14:28:37 -05:00
1 parent 5db9ea6520
commit 10cd53b40b
1 file changed
+1 -1
@@ -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