Skip to content

Commit

Permalink
[Console] Fix split undefined error (elastic#189200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Jul 29, 2024
1 parent ecbe36d commit 35f6376
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 35f6376

Please sign in to comment.