mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Console] Fix split undefined error (#189200)
This commit is contained in:
parent
ecbe36de17
commit
35f63763bc
1 changed files with 6 additions and 1 deletions
|
@ -371,8 +371,13 @@ export class MonacoEditorActionsProvider {
|
|||
return null;
|
||||
}
|
||||
|
||||
// if not on the 1st line of the request, suggest request body
|
||||
// if the current request doesn't have a method, the request is not valid
|
||||
// and shouldn't have an autocomplete type
|
||||
if (!currentRequest.method) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// if not on the 1st line of the request, suggest request body
|
||||
return AutocompleteType.BODY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue