X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6a5b173cd4e9f325f371d26204dfe156d911c20..1feb5aaffe6fee4a9c8c8c64877f1da6f3490e06:/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 ba330f2e41..03212b9fc9 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({ @@ -28,12 +28,12 @@ export const loadDetails = (uuid: string, kind: ResourceKind) => const getService = (kind: ResourceKind) => { switch (kind) { - case ResourceKind.Project: - return new CommonResourceService(serverApi, "groups"); - case ResourceKind.Collection: - return new CommonResourceService(serverApi, "collections"); + case ResourceKind.PROJECT: + return new CommonResourceService(apiClient, "groups"); + case ResourceKind.COLLECTION: + return new CommonResourceService(apiClient, "collections"); default: - return new CommonResourceService(serverApi, ""); + return new CommonResourceService(apiClient, ""); } };