90dbf94c1813e325f88be6a825910dfac7e06957
Plain axios was called without the Authorization header, so the
requireAdmin middleware rejected every request with 401. The catch
block set versionError but the error state was also not yet deployed,
leaving the spinner stuck on 'Checking version…' forever.
Switch both axios.get('/api/nixserver/system/version') and
axios.post('/api/nixserver/system/upgrade') to the api client from
../api/client, which automatically attaches Bearer token from
localStorage on every request.
Languages
TypeScript
93.8%
Shell
5.3%
CSS
0.6%
JavaScript
0.2%
HTML
0.1%