Update index.tsx

This commit is contained in:
Andrew Valleteau authored and GitHub committed 2024-12-05 16:28:35 +01:00
1 parent 741c0cd38d
commit 7f7d1c81e3
1 file changed
+3 -3
@@ -5,12 +5,12 @@ import { useSelectedProject } from 'hooks/misc/useSelectedProject'
import type { NextPageWithLayout } from 'types'
const WorkflowRunIdLogs: NextPageWithLayout = () => {
const project = useSelectedProject()
const { ref } = useParams()
const { workflow_run_id } = useParams()
if (!project?.ref) {
if (!ref) {
return null
}
return <WorkflowLogsPage projectRef={project?.ref} workflowRunId={workflow_run_id} />
return <WorkflowLogsPage projectRef={ref} workflowRunId={workflow_run_id} />
}
WorkflowRunIdLogs.getLayout = (page) => <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>