Skip to content

Commit 3aa0a0d

Browse files
committed
add to params so that it shows up for old spa events
1 parent b3ea2f5 commit 3aa0a0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/ajax/aggregate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class Aggregate extends AggregateBase {
110110
body: ctx.requestBody,
111111
query: ctx.parsedOrigin?.search
112112
})
113-
if (event.gql) event.gql.operationHasErrors = hasGQLErrors(ctx.responseBody)
113+
if (event.gql) event.gql.operationHasErrors = params.gql.operationHasErrors = hasGQLErrors(ctx.responseBody)
114114

115115
const capturePayloadSetting = this.agentRef.init.ajax.capture_payloads
116116
const canCapturePayload = capturePayloadSetting === CAPTURE_PAYLOAD_SETTINGS.ALL || (capturePayloadSetting === CAPTURE_PAYLOAD_SETTINGS.FAILURES && (params.status === 0 || params.status >= 400 || event.gql?.operationHasErrors === true))

0 commit comments

Comments
 (0)