We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8aada commit ca8cb45Copy full SHA for ca8cb45
packages/editor-ui/src/components/ResourceLocator/ResourceLocatorDropdown.vue
@@ -145,7 +145,12 @@ function onKeyDown(e: KeyboardEvent) {
145
}
146
147
} else if (e.key === 'Enter') {
148
- emit('update:modelValue', sortedResources.value[hoverIndex.value].value);
+ const selected = sortedResources.value[hoverIndex.value]?.value;
149
+
150
+ // Selected resource can be empty when loading or empty results
151
+ if (selected) {
152
+ emit('update:modelValue', selected);
153
+ }
154
155
156
0 commit comments