Skip to content

Commit

Permalink
refactor: remove cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bryson-g committed Feb 19, 2025
1 parent db730b8 commit 8f6f96c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { WfRunId, WfRunVariableAccessLevel } from 'littlehorse-client/proto'
import { isExternal } from 'util/types'

export const WfRun: FC<{ ids: string[], tenantId: string }> = ({ ids, tenantId }) => {
const wfRunId: WfRunId = ids.reduce((wfRunId, id, i) => (i === 0 ? { id } : { id, parentWfRunId: wfRunId }), {} as WfRunId);
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 })
Expand Down

0 comments on commit 8f6f96c

Please sign in to comment.