diff --git a/src/components/editor/faultTree/menu/faultEvent/FaultEventMenu.tsx b/src/components/editor/faultTree/menu/faultEvent/FaultEventMenu.tsx index 27fb412c..f0837f9d 100644 --- a/src/components/editor/faultTree/menu/faultEvent/FaultEventMenu.tsx +++ b/src/components/editor/faultTree/menu/faultEvent/FaultEventMenu.tsx @@ -88,7 +88,6 @@ const FaultEventMenu = ({ selectedShapeToolData, outOfSync = null, onEventUpdate const [failureModeOverview, setFailureModeOverview] = useState(null); const [criticality, setCriticality] = useState(0); - const [predictedFailureRate, setPredictedFailureRate] = useState(0); const [ataSystem, setAtaSystem] = useState(""); const [partNumber, setPartNumber] = useState(""); const [stock, setStock] = useState(""); @@ -198,9 +197,9 @@ const FaultEventMenu = ({ selectedShapeToolData, outOfSync = null, onEventUpdate const filteredFailureRate = types.filter((type) => type.hasFailureRate); if (filteredFailureRate.length === 1 && filteredFailureRate[0].hasFailureRate?.prediction?.value) { - setPredictedFailureRate(filteredFailureRate[0].hasFailureRate?.prediction?.value); + setSnsPredictedFailureRate(filteredFailureRate[0].hasFailureRate?.prediction?.value); } else { - setPredictedFailureRate(undefined); + setSnsPredictedFailureRate(undefined); } const superTypes = asArray(shapeToolData?.supertypes?.behavior?.item?.supertypes);