Commit 5c07687b authored by Tim Zallmann's avatar Tim Zallmann

Added Check for Line Number Element

parent a0d23806
......@@ -43,7 +43,7 @@ export default {
if (!isNaN(lineNumber)) {
Store.setActiveLine(lineNumber);
if (Store.isPreviewView()) {
document.getElementById(`L${lineNumber}`).scrollIntoView();
if (document.getElementById(`L${lineNumber}`)) document.getElementById(`L${lineNumber}`).scrollIntoView();
} else {
Helper.monacoInstance.setPosition({
lineNumber: this.activeLine,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment