Skip to content

Commit

Permalink
Use subsettingclient from props instead of hook
Browse files Browse the repository at this point in the history
  • Loading branch information
chowington committed Sep 7, 2023
1 parent c723caf commit 8e3e876
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/libs/eda/src/lib/workspace/AllAnalyses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import {
StudyRecord,
useAnalysisList,
usePinnedAnalyses,
useSubsettingClient,
} from '../core';
import SubsettingClient from '../core/api/SubsettingClient';
import { getAnalysisId } from '../core/utils/analysis';
Expand Down Expand Up @@ -117,6 +116,7 @@ const WDK_STUDY_RECORD_ATTRIBUTES = ['study_access'];
export function AllAnalyses(props: Props) {
const {
analysisClient,
subsettingClient,
exampleAnalysesAuthor,
showLoginForm,
studyRecord,
Expand Down Expand Up @@ -192,7 +192,6 @@ export function AllAnalyses(props: Props) {
removePinnedAnalysis,
} = usePinnedAnalyses(analysisClient);

const subsettingClient = useSubsettingClient();
const datasets = useWdkStudyRecords(subsettingClient, {
attributes: WDK_STUDY_RECORD_ATTRIBUTES,
});
Expand Down

0 comments on commit 8e3e876

Please sign in to comment.