about summary refs log tree commit diff
path: root/src/pages/Search.tsx
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-12 17:34:10 +0200
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-12 17:34:10 +0200
commite077670472f50611289ab34dc2f4d0fcb1d5b5a0 (patch)
tree7e8e177ebf490f066b994c7902ffc6bc9cc731a1 /src/pages/Search.tsx
parentPages: File: Add file page (diff)
downloadfs-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 '')
-rw-r--r--src/pages/Search.tsx3
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>
               ))