Fix subsonic error result

This commit is contained in:
jeffvli 2023-05-14 18:34:08 -07:00
parent 684ba13175
commit 89afa9b836

View file

@ -169,8 +169,8 @@ export const ssApiClient = (args: {
const error = e as AxiosError; const error = e as AxiosError;
const response = error.response as AxiosResponse; const response = error.response as AxiosResponse;
return { return {
body: response.data, body: response?.data,
status: response.status, status: response?.status,
}; };
} }
throw e; throw e;