(record: any)
| 179 | setOpenDeleteModal(false) |
| 180 | } |
| 181 | const handleEdit = async (record: any) => { |
| 182 | setLoading(true) |
| 183 | setDrawerTitle(`${t('projectChunkEditChunk')}`) |
| 184 | setRecordId(record.chunk_id) |
| 185 | const res = await getRecord(collectionId, record.chunk_id) |
| 186 | setContentValue(res.data.content) |
| 187 | setCreateOpenModal(true) |
| 188 | setLoading(false) |
| 189 | |
| 190 | } |
| 191 | const handleConfirm = async () => { |
| 192 | if (!contentValue) { |
| 193 | toast.error(`${t('projectChunkContentRequired')}`) |
no test coverage detected