Skip to content

Commit da53568

Browse files
committed
fix: restore lammpsOutput dependency in Console useEffect
- Biome incorrectly removed lammpsOutput from dependency array - Effect needs to run when output changes to auto-scroll console - Fixes regression in console auto-scrolling behavior
1 parent dc27712 commit da53568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/containers/Console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Console = ({ width, height }: ConsoleProps) => {
2727
editor.revealLine(model.getLineCount());
2828
}
2929
}
30-
}, []);
30+
}, [lammpsOutput]);
3131

3232
const handleEditorDidMount = (editor: Monaco.editor.IStandaloneCodeEditor) => {
3333
editorRef.current = editor;

0 commit comments

Comments
 (0)