{
});
const { step } = useFetchStep({ workflowSlug, stepSlug });
- const stepType = useMemo(() => workflow?.steps.find((el) => el.slug === stepSlug)?.type, [stepSlug, workflow]);
+ const stepType = useMemo(
+ () => workflow?.steps.find((el) => getStepBase62Id(el.slug) === getStepBase62Id(stepSlug))?.type,
+ [stepSlug, workflow]
+ );
const handleCloseSidebar = () => {
navigate('../', { relative: 'path' });
diff --git a/apps/dashboard/src/components/workflow-list.tsx b/apps/dashboard/src/components/workflow-list.tsx
index 4419764bdd0..ba4fb6e895d 100644
--- a/apps/dashboard/src/components/workflow-list.tsx
+++ b/apps/dashboard/src/components/workflow-list.tsx
@@ -102,7 +102,7 @@ export const WorkflowList = () => {
) : (
<>
{workflowsQuery.data.workflows.map((workflow) => (
-
+
))}
>
)}
diff --git a/apps/dashboard/src/components/workflow-steps.tsx b/apps/dashboard/src/components/workflow-steps.tsx
index 4711097bb70..74a395989cb 100644
--- a/apps/dashboard/src/components/workflow-steps.tsx
+++ b/apps/dashboard/src/components/workflow-steps.tsx
@@ -22,8 +22,8 @@ export const WorkflowSteps = (props: WorkflowStepsProps) => {
return (
<>
- {firstSteps.map((step) => (
-
+ {firstSteps.map((step, idx) => (
+
))}
{restSteps.length > 1 && +{restSteps.length}}
>