From f63ea9cc1aabc83168a9ed2ee7254ffe075cf96d Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Wed, 28 Jan 2026 19:33:44 -0800 Subject: [PATCH] fix external logs route --- apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts b/apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts index 4af974b0f..384d7edb0 100644 --- a/apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts +++ b/apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts @@ -215,6 +215,7 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{ } for (const log of logs) { + if (!log.workflowId) continue // Skip logs for deleted workflows const idx = Math.min( segments - 1, Math.max(0, Math.floor((log.startedAt.getTime() - start.getTime()) / segmentMs))