Skip to content

Commit 41749bd

Browse files
committed
fix: solved update when first time rendering
Signed-off-by: Alejandro Parcet <[email protected]>
1 parent b4dc2dd commit 41749bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/src/components/plots/MOGAPareto.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function MOGAPareto(props: MogaParetoPropsType) {
1717
const { loading, progress, jobProgress } = props;
1818
const theme = useTheme();
1919
const { selectedFunction, inputVars, distribution, outputTargets } = useFunctionContext();
20-
const { fetchedJobCollections, filterSelectedJobList } = useJobContext();
20+
const { fetchedJobCollections, filterSelectedJobList, selectedJobUids } = useJobContext();
2121
const { weights } = useMMUXContext();
2222
const [plotData, setPlotData] = useState<Plotly.Data[]>([]);
2323
const [propagating, setPropagating] = useState(false);
@@ -142,7 +142,7 @@ export function MOGAPareto(props: MogaParetoPropsType) {
142142
run();
143143
}
144144
// eslint-disable-next-line react-hooks/exhaustive-deps
145-
}, [selectedFunction, outputTargets, weights]);
145+
}, [selectedFunction, outputTargets, weights, selectedJobUids]);
146146

147147
const layout = {
148148
title: { text: "Pareto Front Diagram" },

0 commit comments

Comments
 (0)