From a6b18c23e1b72689d6f41e77cab774bb009281ad Mon Sep 17 00:00:00 2001 From: Pannawich Lohanimit <30285202+plohan@users.noreply.github.com> Date: Fri, 23 May 2025 22:11:16 +0700 Subject: [PATCH] fix: change incorrect default GraphQL request name (#213) --- src-web/lib/resolvedModelName.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-web/lib/resolvedModelName.ts b/src-web/lib/resolvedModelName.ts index 355d6e05..9bdd11f6 100644 --- a/src-web/lib/resolvedModelName.ts +++ b/src-web/lib/resolvedModelName.ts @@ -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';