X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/bccb9ca5151f041d8c8b73098a3e1874023e3efa..362a1f5afe16f1b9c13b6d3c9fc2638ef0b7bf43:/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 ba330f2e..974346e6 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, ""); } };