Skip to content

Commit

Permalink
Merge 00955e3 into cd84c14
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jul 26, 2022
2 parents cd84c14 + 00955e3 commit ae6c502
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/components/view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
}
code = state.code;
config = state.mermaid;
const scroll = view.parentElement.scrollTop;
delete container.dataset.processed;
mermaid.initialize(Object.assign({}, JSON.parse(state.mermaid)));
mermaid.render('graph-div', code, (svgCode) => {
Expand All @@ -39,7 +38,6 @@
container.innerHTML = svgCode;
}
});
view.parentElement.scrollTop = scroll;
error = false;
} else if (manualUpdate) {
manualUpdate = false;
Expand Down

0 comments on commit ae6c502

Please sign in to comment.