mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Creating isEmpty function to check if dict/array have some contents.
This commit is contained in:
parent
92bd1de8a0
commit
dad276d6ec
10 changed files with 189 additions and 159 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue