default to 0 in the case where the tab doesn't have this value yet

This commit is contained in:
Coel Aspey 2025-01-28 18:49:51 +00:00
parent 48398682a4
commit 19e2866e58
No known key found for this signature in database
GPG Key ID: DB23B401185F603E

View File

@ -125,7 +125,7 @@ export default class CodeEditor extends React.Component {
this.variables = {};
this.searchResultsCountElementId = 'search-results-count';
this.scrollY = props.initialScroll;
this.scrollY = props.initialScroll || 0;
this.lintOptions = {
esversion: 11,