Creating isEmpty function to check if dict/array have some contents.

This commit is contained in:
Roland 2022-11-04 09:58:38 -06:00
parent 92bd1de8a0
commit dad276d6ec
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
10 changed files with 189 additions and 159 deletions

View file

@ -17,7 +17,7 @@ import {createChannel, deleteChannel, downloadChannel, refreshChannel, updateCha
import Container from "semantic-ui-react/dist/commonjs/elements/Container";
import {
frequencyOptions,
humanFileSize,
humanFileSize, isEmpty,
RequiredAsterisk,
secondsToDate,
secondsToFrequency,
@ -574,7 +574,7 @@ export function Channels() {
</TableBody>
</Table>
</>
} else if (channels.length === 0) {
} else if (isEmpty(channels)) {
return <>
{header}
<Message>