17782: Fixes almost all tests (4 left) mostly by fixing namespace-type imports.
[arvados-workbench2.git] / src / services / common-service / trashable-resource-service.ts
index 8f93bb550c47f5fa278f7974bdea215d8f34240a..f0555299e0b514b795b0204485c148523d3c44bc 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as _ from "lodash";
+import { snakeCase } from "lodash";
 import { AxiosInstance } from "axios";
 import { TrashableResource } from "src/models/resource";
 import { CommonResourceService } from "services/common-service/common-resource-service";
@@ -29,7 +29,7 @@ export class TrashableResourceService<T extends TrashableResource> extends Commo
         return CommonResourceService.defaultResponse(
             this.serverApi
                 .post(this.resourceType + `/${uuid}/untrash`, {
-                    params: CommonResourceService.mapKeys(_.snakeCase)(params)
+                    params: CommonResourceService.mapKeys(snakeCase)(params)
                 }),
             this.actions
         );