Skip to content

Commit

Permalink
Merge branch 'hotfix/COT-6_implement_edit_cs_word' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Donghyun Hwang committed Oct 6, 2024
2 parents ab5b727 + 4524f45 commit eaf9344
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/CS/CSRedirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ import { useNavigate, useParams } from 'react-router-dom';

const CSRedirect = () => {
const params = useParams();

const navigate = useNavigate();

const { currentGeneration } = useGeneration();

//
//
//
useEffect(() => {
if (!currentGeneration && !params.generationId) {
return;
}

if (params.generationId !== undefined) {
navigate(`/cs/${currentGeneration?.generationId}`);
} else {
navigate(`/cs/${currentGeneration?.generationId}`);
}
}, []);
}, [currentGeneration, params]);

//
//
Expand Down

0 comments on commit eaf9344

Please sign in to comment.