Skip to content

Commit

Permalink
get sensitivity factor count according to the node id
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <[email protected]>
  • Loading branch information
EtienneLt committed Jul 11, 2024
1 parent 9e50c72 commit 7d19a3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const SensitivityAnalysisParameters = ({

const { reset, handleSubmit, formState, getValues, setValue } = formMethods;
const studyUuid = useSelector((state) => state.studyUuid);
const currentNode = useSelector((state) => state.currentTreeNode);
const [sensitivityAnalysisParams, setSensitivityAnalysisParams] =
useState(params);

Expand Down Expand Up @@ -225,6 +226,7 @@ export const SensitivityAnalysisParameters = ({
setLaunchLoader(true);
getSensitivityAnalysisFactorsCount(
studyUuid,
currentNode.id,
arrayFormName === SENSI_INJECTIONS_SET,
formatFilteredParams(row)
)
Expand Down
3 changes: 2 additions & 1 deletion src/services/study/sensitivity-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export function setSensitivityAnalysisParameters(studyUuid, newParams) {

export function getSensitivityAnalysisFactorsCount(
studyUuid,
currentNodeUuid,
isInjectionsSet,
newParams
) {
Expand All @@ -146,7 +147,7 @@ export function getSensitivityAnalysisFactorsCount(
);

const url =
getStudyUrl(studyUuid) +
getStudyUrlWithNodeUuid(studyUuid, currentNodeUuid) +
`/sensitivity-analysis/factors-count?${urlSearchParams}`;
console.debug(url);
return backendFetch(url, {
Expand Down

0 comments on commit 7d19a3e

Please sign in to comment.