mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Handling when no files are returned.
This commit is contained in:
parent
a1c74a3443
commit
2d8a7cd3a8
1 changed files with 2 additions and 2 deletions
|
|
@ -200,9 +200,9 @@ function FileCard({file}) {
|
|||
export function FileCards({files}) {
|
||||
if (!isEmpty(files)) {
|
||||
return <CardGroupCentered>
|
||||
{files.map((i) => <FileCard key={i['path']} file={i}/>)}
|
||||
{files.map(i => <FileCard key={i['path']} file={i}/>)}
|
||||
</CardGroupCentered>
|
||||
} else if (isEmpty(files)) {
|
||||
} else if (files && files.length === 0) {
|
||||
return <Header as='h4'>No files found.</Header>
|
||||
} else {
|
||||
return <CardGroupCentered><CardPlacholder/></CardGroupCentered>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue