Skip to content

Commit 2edae82

Browse files
committed
GUI: Remove 2000 child elements restriction on terminal
With the new buffering strategy and improved terminal panel this restriction is obsolete and would not apply anymore in a typical usage scenario
1 parent 4821de0 commit 2edae82

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/resources/automark/gui/components/Dashboard.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ export default class DashboardScreen extends Component {
178178
const terminal = this.terminalRef.current
179179
if (terminal != null) {
180180
const terminalText = terminal.children[0]
181-
const childElementCount = terminalText.childElementCount
182-
for (let i = 0; i < childElementCount - 2000; i++) {
183-
terminalText.children[i].remove()
184-
}
185181
const lineSpan = document.createElement("span")
186182
lineSpan.innerText = text
187183
terminalText.appendChild(lineSpan)

0 commit comments

Comments
 (0)