File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -216,17 +216,14 @@ export function useCloudApi() {
216
216
}
217
217
} ,
218
218
onError : async ( err : any ) => {
219
- const error = Object . assign ( { } , err ) as any
220
- if (
221
- error . response != null &&
222
- typeof error . response . text === 'function'
223
- ) {
219
+ if ( err . response != null && typeof err . response . text === 'function' ) {
220
+ const response = Object . assign ( { } , err . response )
224
221
try {
225
- const description = ( await error . response . text ( ) )
222
+ const description = ( await response . text ( ) )
226
223
. split ( '\n' ) [ 0 ]
227
224
. split ( ': ' )
228
225
if (
229
- error . response . status === 403 &&
226
+ response . status === 403 &&
230
227
description . some ( ( desc : any ) =>
231
228
( desc || '' ) . includes (
232
229
`Your space exceeds the free tier's capacity`
You can’t perform that action at this time.
0 commit comments