mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
Improve code coverage
This commit is contained in:
@@ -106,6 +106,7 @@ const Terminal: React.FC = (_props) => {
|
||||
|
||||
// xterm.open() has to be called after terminalRef has been rendered
|
||||
useEffect(() => {
|
||||
// istanbul ignore if: should not happen ever
|
||||
if (!terminalRef.current) {
|
||||
console.error('Missing terminal reference');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user