Skip to content

Commit

Permalink
refactor: remove unused references
Browse files Browse the repository at this point in the history
  • Loading branch information
bryson-g committed Feb 19, 2025
1 parent 8f6f96c commit 7001510
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
'use client'
import { Diagram } from '@/app/(authenticated)/[tenantId]/(diagram)/components/Diagram'
import { Navigation } from '@/app/(authenticated)/[tenantId]/components/Navigation'
import { useWfRun } from '@/app/hooks/useWfRun'
import { WfRunId, WfRunVariableAccessLevel } from 'littlehorse-client/proto'
import { useSearchParams } from 'next/navigation'
import { FC, useCallback } from 'react'
import { FC } from 'react'
import { Details } from './Details'
import { Variables } from './Variables'
import { useWfRun } from '@/app/hooks/useWfRun'
import { WfRunId, WfRunVariableAccessLevel } from 'littlehorse-client/proto'
import { isExternal } from 'util/types'

export const WfRun: FC<{ ids: string[], tenantId: string }> = ({ ids, tenantId }) => {
const wfRunId = ids.reduce((wfRunId, id, i) => (i === 0 ? { id } : { id, parentWfRunId: wfRunId }), {} as WfRunId);

const searchParams = useSearchParams()
const threadRunNumber = Number(searchParams.get('threadRunNumber'))
const { wfRunData, isLoading, isError } = useWfRun({ wfRunId, tenantId })
const { wfRunData } = useWfRun({ wfRunId, tenantId })
const { wfRunData: parentWfRunData } = useWfRun({ wfRunId: wfRunData?.wfRun?.id?.parentWfRunId ?? { id: '', parentWfRunId: undefined }, tenantId })

if (!wfRunData) return null
Expand Down

0 comments on commit 7001510

Please sign in to comment.