()
| 166 | setOpenDeleteModal(false) |
| 167 | } |
| 168 | const onDeleteConfirm = async () => { |
| 169 | try { |
| 170 | await deleteRecord(collectionId, deleteId) |
| 171 | const params = { |
| 172 | limit: limit || 20, |
| 173 | } |
| 174 | await fetchData(collectionId, params) |
| 175 | setUpdatePrevButton(true) |
| 176 | } catch (error) { |
| 177 | console.log(error) |
| 178 | } |
| 179 | setOpenDeleteModal(false) |
| 180 | } |
| 181 | const handleEdit = async (record: any) => { |
| 182 | setLoading(true) |
| 183 | setDrawerTitle(`${t('projectChunkEditChunk')}`) |
nothing calls this directly
no test coverage detected