Fix common resource service create method
[arvados-workbench2.git] / src / common / api / common-resource-service.ts
index fe6c752c8ee1d4b2b42cc8d5bc64640ca8e93171..8df179cd65d2d8d3f369bbc6aa1dc1ef246a8c52 100644 (file)
@@ -70,7 +70,7 @@ export default class CommonResourceService<T extends Resource> {
 
     create(data: Partial<T>) {
         return this.serverApi
-            .post<T>(this.resourceType, data)
+            .post<T>(this.resourceType, CommonResourceService.mapKeys(_.snakeCase)(data))
             .then(CommonResourceService.mapResponseKeys);
     }