From 1356631bebb76a8ef9020e038fbdbbd15bf8e652 Mon Sep 17 00:00:00 2001 From: Firesieht Date: Sun, 28 Aug 2022 12:53:03 +0300 Subject: [PATCH] add download files --- Components/ItemSelect/index.tsx | 2 +- pages/files.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/ItemSelect/index.tsx b/Components/ItemSelect/index.tsx index e8ca67f..5bad156 100644 --- a/Components/ItemSelect/index.tsx +++ b/Components/ItemSelect/index.tsx @@ -19,7 +19,7 @@ export const ItemSelect: React.FC = (props) =>{ props.items.map((item:SelectItemIE)=>{ options.push( -
onItemChange(item)}>{item.name}
+
onItemChange(item)}>{item.name.slice(60, item.name.length)}
) }) const onItemChange = (item:SelectItemIE) =>{ diff --git a/pages/files.tsx b/pages/files.tsx index afce93c..0b91f66 100644 --- a/pages/files.tsx +++ b/pages/files.tsx @@ -90,7 +90,7 @@ const getData = () =>{ files.length == 0? "" : onFileChange(val as any)} items={files.map((value:any)=> ({ - name: value.file.slice(60, value.uuid.lenght), + name: value.file, value: value } as SelectItemIE) )}