We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20ea9a4 + 3abebb4 commit 9755096Copy full SHA for 9755096
1 file changed
src/components/workbench/breadboard/Breadboard.tsx
@@ -551,12 +551,10 @@ function EditorWithVisualTab(props: EditorWithVisualTabProps) {
551
552
// Reset to Code Editor tab when file changes or is not a tabbed file
553
useEffect(() => {
554
- if (!hasTabs) {
555
- setEditorTab(0);
556
- }
+ setEditorTab(0);
557
pendingCodeRef.current = undefined;
558
setCodeSnapshot(null);
559
- }, [hasTabs, file?.id]);
+ }, [file?.id]);
560
561
// Called by WorkbenchSourceCodeEditor on every keystroke (not debounced)
562
const handleImmediateCodeChange = useCallback((code: string) => {
0 commit comments