| 97 | setOpenDrawer(true) |
| 98 | } |
| 99 | const getBundleList = async (params: object) => { |
| 100 | const res: any = await bundleList(params) |
| 101 | const imagesData: any = {}; |
| 102 | res.data.forEach((image: any) => { |
| 103 | fetch(image.icon_url) |
| 104 | .then(response => response.blob()) |
| 105 | .then(blob => { |
| 106 | const reader = new FileReader(); |
| 107 | reader.onload = function () { |
| 108 | imagesData[image.bundle_id] = reader.result; |
| 109 | setCachedImages(imagesData); |
| 110 | }; |
| 111 | reader.readAsDataURL(blob); |
| 112 | }); |
| 113 | }); |
| 114 | setBundlesList(res.data) |
| 115 | } |
| 116 | const columns = [...bundleTableColumn] |
| 117 | columns.push({ |
| 118 | title: `${t('projectColumnActions')}`, |