Skip to content

Commit

Permalink
fix(frontend): missing groups in CSV simulation useExportSimulation (#…
Browse files Browse the repository at this point in the history
…535)

Fix missing groups in the simulations CSV export by upgrading to use the `useSubjectGroups` hook.
  • Loading branch information
eatyourgreens authored Oct 2, 2024
1 parent f709cfe commit cfbf563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend-v2/src/features/simulation/useExportSimulation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useProtocols from "./useProtocols";
import useDataset from "../../hooks/useDataset";
import useSubjectGroups from "../../hooks/useSubjectGroups";
import {
CombinedModelRead,
Simulate,
Expand Down Expand Up @@ -45,7 +45,7 @@ export default function useExportSimulation({
model,
project,
}: iExportSimulation): [() => void, { error: any }] {
const { groups } = useDataset(project?.id || 0);
const { groups } = useSubjectGroups();
const { compound, protocols } = useProtocols();
const { data: variables } = useVariableListQuery(
{ dosedPkModelId: model?.id || 0 },
Expand Down

0 comments on commit cfbf563

Please sign in to comment.