diff --git a/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx index f1e6f0014..64b00a019 100644 --- a/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx +++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx @@ -11,11 +11,12 @@ import { NodeViewButton } from '../../NodeViewButton' import { useParams, useRouter } from 'next/navigation' const Node: FC = ({ 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 ( <>