mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Allow mapping onto expression editor with selection range (#4945)
🔥 Remove unneeded guard
This commit is contained in:
parent
76a3f13458
commit
6b83972f6e
|
@ -39,10 +39,6 @@ export default mixins(expressionManager, workflowHelpers).extend({
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value(newValue) {
|
value(newValue) {
|
||||||
const range = this.editor?.state.selection.ranges[0];
|
|
||||||
|
|
||||||
if (range !== undefined && range.from !== range.to) return;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.editor?.dispatch({
|
this.editor?.dispatch({
|
||||||
changes: {
|
changes: {
|
||||||
|
|
Loading…
Reference in a new issue