Skip to content

Commit

Permalink
fix(dashboard): no conditional rendering of hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bryson-g committed Dec 7, 2024
1 parent ed55f30 commit 8283e10
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import { NodeViewButton } from '../../NodeViewButton'
import { useParams, useRouter } from 'next/navigation'

const Node: FC<NodeProps> = ({ data, selected }) => {
if (!data.userTask) return null
const { fade, userTask, nodeRun, nodeNeedsToBeHighlighted, nodeRunsList } = data
const router = useRouter()
const tenantId = useParams().tenantId as string

if (!data.userTask) return null
const { fade, userTask, nodeRun, nodeNeedsToBeHighlighted, nodeRunsList } = data

return (
<>
<NodeDetails>
Expand Down

0 comments on commit 8283e10

Please sign in to comment.