19691: Passes showErrors param on service layer's update method.
[arvados-workbench2.git] / src / services / common-service / common-service.ts
index b8e7dc679c21222badea95db2b1be7a9bb4e2138..fe7467a6f794bc26019bda5b897585bf1c81fc68 100644 (file)
@@ -175,12 +175,14 @@ export class CommonService<T> {
         }
     }
 
-    update(uuid: string, data: Partial<T>) {
+    update(uuid: string, data: Partial<T>, showErrors?: boolean) {
         this.validateUuid(uuid);
         return CommonService.defaultResponse(
             this.serverApi
                 .put<T>(`/${this.resourceType}/${uuid}`, data && CommonService.mapKeys(snakeCase)(data)),
-            this.actions
+            this.actions,
+            false,
+            showErrors
         );
     }
 }