horanchikk 5 bulan lalu
induk
melakukan
6c1957144e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      repository/api.ts

+ 1 - 1
repository/api.ts

@@ -59,7 +59,7 @@ export class API {
     },
     onResponse: (ctx) => {
       const statusCode = ctx.response.status
-      if (statusCode > 300 && statusCode !== 422)
+      if (statusCode > 300)
         this.throwError(ctx.request.toString(), ctx.response._data)
     },
     onResponseError: async (ctx) => {