mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(editor): Prevent error being thrown in RLC while loading (#11676)
This commit is contained in:
parent
0d8aada490
commit
ca8cb455ba
|
@ -145,7 +145,12 @@ function onKeyDown(e: KeyboardEvent) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (e.key === 'Enter') {
|
} else if (e.key === 'Enter') {
|
||||||
emit('update:modelValue', sortedResources.value[hoverIndex.value].value);
|
const selected = sortedResources.value[hoverIndex.value]?.value;
|
||||||
|
|
||||||
|
// Selected resource can be empty when loading or empty results
|
||||||
|
if (selected) {
|
||||||
|
emit('update:modelValue', selected);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue