diff options
author | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-07-12 17:34:10 +0200 |
---|---|---|
committer | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-07-12 17:34:10 +0200 |
commit | e077670472f50611289ab34dc2f4d0fcb1d5b5a0 (patch) | |
tree | 7e8e177ebf490f066b994c7902ffc6bc9cc731a1 /src/pages/Search.tsx | |
parent | Pages: File: Add file page (diff) | |
download | fs-tracer-frontend-e077670472f50611289ab34dc2f4d0fcb1d5b5a0.tar.gz fs-tracer-frontend-e077670472f50611289ab34dc2f4d0fcb1d5b5a0.tar.bz2 fs-tracer-frontend-e077670472f50611289ab34dc2f4d0fcb1d5b5a0.zip |
Pages: File: Show more info about file
Diffstat (limited to 'src/pages/Search.tsx')
-rw-r--r-- | src/pages/Search.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/Search.tsx b/src/pages/Search.tsx index 54816ff..0d85cb7 100644 --- a/src/pages/Search.tsx +++ b/src/pages/Search.tsx @@ -27,6 +27,7 @@ export default function Search(props: any) { .from('file') .select() .ilike('absolute_path', `%${search}%`) + .order('timestamp', { ascending: false }) .range(paginationOffset, paginationOffset + numOfFilesToShow - 1) if (error) { console.error(error) @@ -61,7 +62,7 @@ export default function Search(props: any) { <div className="flex flex-col items-center"> <div className="flex flex-col gap-2"> {files.map((file: FSTracerFile) => ( - <div key={file.id} role="button" onClick={() => console.log("clocked file")}> + <div key={file.id} role="button"> <FileComponent file={file} /> </div> )) |