mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
fix(editor): Fix code node highlight error (#6791)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
parent
6fb8a9ee39
commit
50b0dc21fd
|
@ -166,7 +166,7 @@ export default defineComponent({
|
||||||
|
|
||||||
if (lineNumber === 'final') {
|
if (lineNumber === 'final') {
|
||||||
this.editor.dispatch({
|
this.editor.dispatch({
|
||||||
selection: { anchor: this.content.length },
|
selection: { anchor: (this.modelValue ?? this.content).length },
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue