(id: number)
| 37 | }; |
| 38 | |
| 39 | public async deleteImage(id: number): Promise<void> { |
| 40 | try { |
| 41 | await axios.delete(`${config.get('url')}application/${id}/image`); |
| 42 | await this.refresh(); |
| 43 | this.snack('Application image deleted'); |
| 44 | } catch (error) { |
| 45 | console.error('Error deleting application image:', error); |
| 46 | throw error; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | @action |
| 51 | public reorder = async (fromId: number, toId: number): Promise<void> => { |