Merge branch '19273-process-status-badge' into main. Closes #19273
[arvados.git] / src / services / common-service / common-service.ts
index fe7467a6f794bc26019bda5b897585bf1c81fc68..4b857eddbb8233239d2d4d152928f0a93c86e9e1 100644 (file)
@@ -154,6 +154,7 @@ export class CommonService<T> {
             return CommonService.defaultResponse(
                 this.serverApi.get(`/${this.resourceType}`, { params }),
                 this.actions,
+                true,
                 showErrors
             );
         } else {
@@ -170,6 +171,7 @@ export class CommonService<T> {
             return CommonService.defaultResponse(
                 this.serverApi.post(`/${this.resourceType}`, formData, {}),
                 this.actions,
+                true,
                 showErrors
             );
         }
@@ -181,7 +183,7 @@ export class CommonService<T> {
             this.serverApi
                 .put<T>(`/${this.resourceType}/${uuid}`, data && CommonService.mapKeys(snakeCase)(data)),
             this.actions,
-            false,
+            undefined, // mapKeys
             showErrors
         );
     }