mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 00:49:17 +01: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');
|
||||
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';
|
||||
|
||||
Reference in New Issue
Block a user