mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
fix: change incorrect default GraphQL request name (#213)
This commit is contained in:
committed by
GitHub
parent
041298b3f8
commit
a6b18c23e1
@@ -18,7 +18,9 @@ export function resolvedModelName(r: AnyModel | null): string {
|
|||||||
const withoutVariables = r.url.replace(/\$\{\[\s*([^\]\s]+)\s*]}/g, '$1');
|
const withoutVariables = r.url.replace(/\$\{\[\s*([^\]\s]+)\s*]}/g, '$1');
|
||||||
if (withoutVariables.trim() === '') {
|
if (withoutVariables.trim() === '') {
|
||||||
return r.model === 'http_request'
|
return r.model === 'http_request'
|
||||||
? 'HTTP Request'
|
? r.bodyType && r.bodyType === 'graphql'
|
||||||
|
? 'GraphQL Request'
|
||||||
|
: 'HTTP Request'
|
||||||
: r.model === 'websocket_request'
|
: r.model === 'websocket_request'
|
||||||
? 'WebSocket Request'
|
? 'WebSocket Request'
|
||||||
: 'gRPC Request';
|
: 'gRPC Request';
|
||||||
|
|||||||
Reference in New Issue
Block a user