fix: verifying empty arrays

This commit is contained in:
José Oliveira 2021-02-10 14:14:01 +00:00 committed by Josh Harvey
parent 9f0d470c2c
commit 6951bac10e
2 changed files with 4 additions and 2 deletions

View file

@ -135,7 +135,7 @@ const Logs = () => {
</TableBody>
</Table>
{loading && <H4>{'Loading...'}</H4>}
{!loading && !R.isEmpty(logsResponse) && (
{!loading && R.isEmpty(logsResponse?.machineLogs) && (
<H4>{'No activity so far'}</H4>
)}
</div>