mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
Update index.tsx
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user