Skip to content

Commit

Permalink
front: ensure stdcm form and simulations clear on page refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Achraf Mohyeddine <a.mohyeddine@gmail.com>
  • Loading branch information
achrafmohye committed Dec 13, 2024
1 parent a114e33 commit 179937f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const StdcmConfig = ({
updateGridMarginBefore,
updateStdcmStandardAllowance,
updateStdcmPathStep,
resetStdcmConfig,
} = useOsrdConfActions() as StdcmConfSliceActions;

const {
Expand Down Expand Up @@ -139,6 +140,10 @@ const StdcmConfig = ({
}
}, [infra]);

useEffect(() => {
dispatch(resetStdcmConfig());
}, []);

return (
<div className="stdcm__body">
{isDebugMode && (
Expand Down

0 comments on commit 179937f

Please sign in to comment.