()
| 144 | }; |
| 145 | |
| 146 | const handleResetPath = async () => { |
| 147 | try { |
| 148 | await setConfigPath(null); |
| 149 | const newPaths = await getPaths(); |
| 150 | setPathsInfo(newPaths); |
| 151 | await refreshData(); |
| 152 | toast.success("Reset to auto-detect"); |
| 153 | } catch (err: any) { |
| 154 | const msg = err.response?.data?.error || err.message || "Unknown error"; |
| 155 | toast.error(`Failed to reset path: ${msg}`); |
| 156 | } |
| 157 | }; |
| 158 | |
| 159 | const handleBackup = async () => { |
| 160 | try { |
nothing calls this directly
no test coverage detected