diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChangeOverwriteWarning.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChangeOverwriteWarning.tsx index 7a83d5bbd6..8c6bf2ae42 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChangeOverwriteWarning.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChangeOverwriteWarning.tsx @@ -80,6 +80,7 @@ export const ChangesToOverwrite: React.FC<{ : null; const { registerWillOverwriteStrategyChanges } = useChangeRequestPlausibleContext(); + useEffect(() => { if (changesThatWouldBeOverwritten) { registerWillOverwriteStrategyChanges();