Fix editor broken moving between code and config

This commit is contained in:
Dmitry Litsman
2023-04-16 15:07:33 +01:00
parent d3f2b81639
commit a0ccc8f94a
+1
View File
@@ -30,6 +30,7 @@
const newText = editorMode === 'code' ? code : mermaid;
if (newText !== text) {
// console.log('updating editor text', newText);
editor.setScrollTop(0);
editor.setValue(newText);
text = newText;
}