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 3eba310 commit 16e7c21Copy full SHA for 16e7c21
src/platform/packages/private/kbn-esql-editor/src/esql_editor.tsx
@@ -553,7 +553,9 @@ const ESQLEditorInternal = function ESQLEditor({
553
getJoinIndices,
554
getTimeseriesIndices: kibana.services?.esql?.getTimeseriesIndicesAutocomplete,
555
getEditorExtensions: async (queryString: string) => {
556
- if (activeSolutionId) {
+ // Only fetch recommendations if there's an active solutionId and a non-empty query
557
+ // Otherwise the route will return an error
558
+ if (activeSolutionId && queryString.trim() !== '') {
559
return (
560
(await kibana.services?.esql?.getEditorExtensionsAutocomplete(
561
queryString,
0 commit comments