Skip to content

Commit e653ebd

Browse files
committed
fix(terminal): add activeWorkflowId to auto-open effect deps
1 parent 2dceaa1 commit e653ebd

File tree

1 file changed

+8
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal

1 file changed

+8
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/terminal.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,14 @@ export const Terminal = memo(function Terminal() {
10481048
}
10491049

10501050
prevWorkflowEntriesLengthRef.current = currentLength
1051-
}, [allWorkflowEntries.length, expandToLastHeight, openOnRun, isExpanded, hasConsoleHydrated])
1051+
}, [
1052+
allWorkflowEntries.length,
1053+
expandToLastHeight,
1054+
openOnRun,
1055+
isExpanded,
1056+
hasConsoleHydrated,
1057+
activeWorkflowId,
1058+
])
10521059

10531060
/**
10541061
* Handle row click - toggle if clicking same entry

0 commit comments

Comments
 (0)