Skip to content

Commit

Permalink
#177 | Dont show no-results msg when api is still loading
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jul 29, 2024
1 parent 4b50d6a commit 08230be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -912,11 +912,11 @@ export default function ImageList() {
}
</div>
<Divider style={{paddingTop: "24px"}}/>
{imageList.total === 0 ? <p style={{
{imageList.total === 0 ? (showLoader ? <></>: (<p style={{
display: "flex",
justifyContent: "center",
alignItems: "center", paddingTop: "24px", fontSize: "1rem"
}}>No results to display</p> :
}}>No results to display</p>)) :
<Fragment>
<div className="max-w-2xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:max-w-7xl lg:px-8">
<div
Expand Down

0 comments on commit 08230be

Please sign in to comment.