(value: any)
| 92 | } |
| 93 | } |
| 94 | const fetchSearchData = async (value: any) => { |
| 95 | setContentLoading(true) |
| 96 | const res: any = await getRetrievalList(value) |
| 97 | const data = res.data.map((item: any) => { |
| 98 | return { |
| 99 | ...item, |
| 100 | capacity1: item.num_chunks + '/' + item.capacity, |
| 101 | key: item.collection_id |
| 102 | } |
| 103 | }) |
| 104 | setContentList(data); |
| 105 | setContentLoading(false) |
| 106 | } |
| 107 | const fetchActionData = async (params: any) => { |
| 108 | setContentLoading(true) |
| 109 | const res: any = await getActionsList(params) |
no test coverage detected