[Console] Fix split undefined error (#189200)

This commit is contained in:
Ignacio Rivas 2024-07-29 16:32:39 +02:00 committed by GitHub
parent ecbe36de17
commit 35f63763bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}