diff --git a/frontend/src/components/nav/workflow-switcher.tsx b/frontend/src/components/nav/workflow-switcher.tsx
index 8f72f782b..ab6c83bf7 100644
--- a/frontend/src/components/nav/workflow-switcher.tsx
+++ b/frontend/src/components/nav/workflow-switcher.tsx
@@ -87,14 +87,14 @@ export default function WorkflowSwitcher({
{!workflows ? (
) : (
- workflows.map((workflow) => (
+ workflows.map((wf) => (
{
// If we're on cases page, stay at /workflows/{workflowId}/cases
const nextPath = pathname.endsWith("/cases")
- ? `/workflows/${workflow.id}/cases`
- : `/workflows/${workflow.id}`
+ ? `/workflows/${wf.id}/cases`
+ : `/workflows/${wf.id}`
router.push(nextPath)
setOpen(false)
}}
@@ -103,18 +103,16 @@ export default function WorkflowSwitcher({
{/* TODO: Replace with CircleIcon and green / grey / red (error) / yellow (warning) */}
- {workflow.title}
+ {wf.title}