Skip to content

Commit

Permalink
fix(v6-router): fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tibendadavis committed Jul 23, 2024
1 parent 01636e3 commit ca344a5
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ export default function useScorecardManagerNavigate({

useEffect(() => {
const searchParams = new URLSearchParams(search);
const currentStep = find(steps, { id: step });

setActiveStep(() => {
const currentStep = find(steps, { id: step });
return currentStep;
});
if (!isEmpty(currentStep)) {
setActiveStep(() => {
return currentStep;
});
}

const isNew = searchParams.get("new");
if (isNew) {
Expand Down

0 comments on commit ca344a5

Please sign in to comment.