Skip to content

Commit 2c9d13d

Browse files
committed
fix the conditionals: we work on filtered, not files
1 parent fa5882d commit 2c9d13d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Folder.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ export default function Folder({ source }: FolderProps) {
9494
</div>
9595
</Breadcrumb>
9696

97-
{files === undefined ?
97+
{filtered === undefined ?
9898
<Center><Spinner /></Center> :
99-
files.length === 0 ?
99+
filtered.length === 0 ?
100100
<Center>No files</Center> :
101101
<ul className='file-list' ref={listRef}>
102-
{filtered?.map((file, index) =>
102+
{filtered.map((file, index) =>
103103
<li key={index}>
104104
<a href={routes?.getSourceRouteUrl?.({ sourceId: file.sourceId }) ?? location.href}>
105105
<span className={cn('file-name', 'file', file.kind === 'directory' && 'folder')}>

0 commit comments

Comments
 (0)