diff --git a/apps/learneth/src/pages/StepDetail/index.tsx b/apps/learneth/src/pages/StepDetail/index.tsx index 30d73792bb..b941caccb7 100644 --- a/apps/learneth/src/pages/StepDetail/index.tsx +++ b/apps/learneth/src/pages/StepDetail/index.tsx @@ -12,7 +12,7 @@ function StepDetailPage() { const location = useLocation() const dispatch = useAppDispatch() const [clonedStep, setClonedStep] = React.useState(null) - + const queryParams = new URLSearchParams(location.search) const id = queryParams.get('id') as string const stepId = Number(queryParams.get('stepId')) @@ -259,4 +259,4 @@ function StepDetailPage() { ) } -export default StepDetailPage +export default StepDetailPage \ No newline at end of file