refactor(editor): Add types to codeNodeEditorEventBus (no-changelog) (#10501)

This commit is contained in:
Tomi Turtiainen
2024-08-22 09:31:40 +03:00
committed by GitHub
parent bcc4bb3c57
commit 18491f6a6f
4 changed files with 16 additions and 6 deletions

View File

@@ -154,7 +154,7 @@ watch(segments, () => {
});
onMounted(() => {
codeNodeEditorEventBus.on('error-line-number', highlightLine);
codeNodeEditorEventBus.on('highlightLine', highlightLine);
if (props.fullscreen) {
focus();
@@ -162,7 +162,7 @@ onMounted(() => {
});
onBeforeUnmount(() => {
codeNodeEditorEventBus.off('error-line-number', highlightLine);
codeNodeEditorEventBus.off('highlightLine', highlightLine);
});
function line(lineNumber: number): Line | null {