fix: change incorrect default GraphQL request name (#213)

This commit is contained in:
Pannawich Lohanimit
2025-05-23 22:11:16 +07:00
committed by GitHub
parent 041298b3f8
commit a6b18c23e1

View File

@@ -18,7 +18,9 @@ export function resolvedModelName(r: AnyModel | null): string {
const withoutVariables = r.url.replace(/\$\{\[\s*([^\]\s]+)\s*]}/g, '$1');
if (withoutVariables.trim() === '') {
return r.model === 'http_request'
? 'HTTP Request'
? r.bodyType && r.bodyType === 'graphql'
? 'GraphQL Request'
: 'HTTP Request'
: r.model === 'websocket_request'
? 'WebSocket Request'
: 'gRPC Request';