()
| 130 | }; |
| 131 | |
| 132 | const handleSetPath = async () => { |
| 133 | try { |
| 134 | await setConfigPath(manualPath || null); |
| 135 | const newPaths = await getPaths(); |
| 136 | setPathsInfo(newPaths); |
| 137 | await refreshData(); |
| 138 | toast.success(manualPath ? "Config path updated" : "Reset to auto-detect"); |
| 139 | setManualPath(""); |
| 140 | } catch (err: any) { |
| 141 | const msg = err.response?.data?.error || err.message || "Unknown error"; |
| 142 | toast.error(`Failed to set config path: ${msg}`); |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | const handleResetPath = async () => { |
| 147 | try { |
nothing calls this directly
no test coverage detected