We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e453f6a commit e2cb053Copy full SHA for e2cb053
1 file changed
packages/ws-worker/src/events/step-complete.ts
@@ -46,11 +46,7 @@ export default async function onStepComplete(
46
response_data = event.state?.webhookResponse;
47
48
// validating structure of response & add status if it's a number
49
- if (
50
- response_data &&
51
- response_data.body &&
52
- typeof response_data.body === 'object'
53
- ) {
+ if (typeof response_data?.body === 'object') {
54
webhook_response = {
55
...(Number.isInteger(response_data.status)
56
? { status: response_data.status }
0 commit comments