X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2badeb3fe6beb308b952ab2b7101ed4547c04e10..7ae86efd9905582df4191910528c3803a68ba81b:/src/store/details-panel/details-panel-action.ts diff --git a/src/store/details-panel/details-panel-action.ts b/src/store/details-panel/details-panel-action.ts index f37907d2..03212b9f 100644 --- a/src/store/details-panel/details-panel-action.ts +++ b/src/store/details-panel/details-panel-action.ts @@ -5,7 +5,7 @@ import { unionize, ofType, UnionOf } from "unionize"; import { CommonResourceService } from "../../common/api/common-resource-service"; import { Dispatch } from "redux"; -import { serverApi } from "../../common/api/server-api"; +import { apiClient } from "../../common/api/server-api"; import { Resource, ResourceKind } from "../../models/resource"; export const detailsPanelActions = unionize({ @@ -29,11 +29,11 @@ export const loadDetails = (uuid: string, kind: ResourceKind) => const getService = (kind: ResourceKind) => { switch (kind) { case ResourceKind.PROJECT: - return new CommonResourceService(serverApi, "groups"); + return new CommonResourceService(apiClient, "groups"); case ResourceKind.COLLECTION: - return new CommonResourceService(serverApi, "collections"); + return new CommonResourceService(apiClient, "collections"); default: - return new CommonResourceService(serverApi, ""); + return new CommonResourceService(apiClient, ""); } };