fix: conditionally render SiteList component based on loading state and site availability
This commit is contained in:
@@ -431,7 +431,9 @@ export default function HomePage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<SiteList sites={sites} loading={sitesLoading} onDelete={handleDelete} />
|
{(sitesLoading || sites.length > 0) && (
|
||||||
|
<SiteList sites={sites} loading={sitesLoading} onDelete={handleDelete} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user