Skip to content

Commit

Permalink
fixed bug caused by location in useEffect dep array
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalbg committed Dec 9, 2024
1 parent 2956841 commit 6144948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function TdmCalculationContainer({ contentContainerRef }) {
// const redirect = account.id ? "/projects" : "/login";
// navigate(redirect);
}
}, [engine, projectId, account, location, navigate, setRules, setProject]);
}, [engine, projectId, account, setRules, setProject]); // eslint-disable-line react-hooks/exhaustive-deps

// Initialize the engine with saved project data, as appropriate.
// Should run only when projectId changes.
Expand Down

0 comments on commit 6144948

Please sign in to comment.