Skip to content

Commit

Permalink
fix: fix infinite re-render loop caused by router vs. RHF
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Sep 23, 2024
1 parent 5e2894d commit 9895bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Scenario/Scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const Scenario = () => {
const scenarioValidationArea = showValidationChip ? scenarioValidationStatusChip : validationStatusButtons;

return (
<FormProvider {...methods}>
<FormProvider {...methods} key={`form-${currentScenarioData?.id}`}>
<BackdropLoadingScenario />
<div data-cy="scenario-view" className={classes.content}>
<Grid container spacing={2} alignItems="center" justifyContent="space-between">
Expand Down

0 comments on commit 9895bd4

Please sign in to comment.