diff --git a/frontend/src/views/api-test/scenario/components/step/stepTree.vue b/frontend/src/views/api-test/scenario/components/step/stepTree.vue index 19c2343b83..5c207919f1 100644 --- a/frontend/src/views/api-test/scenario/components/step/stepTree.vue +++ b/frontend/src/views/api-test/scenario/components/step/stepTree.vue @@ -1257,9 +1257,9 @@ body: { ...request.body, jsonBody: { - ...request.body.jsonBody, - jsonSchema: request.body.jsonBody.jsonSchemaTableData - ? parseTableDataToJsonSchema(request.body.jsonBody.jsonSchemaTableData[0]) + ...request.body?.jsonBody, + jsonSchema: request.body?.jsonBody?.jsonSchemaTableData + ? parseTableDataToJsonSchema(request.body?.jsonBody?.jsonSchemaTableData?.[0]) : undefined, }, }, diff --git a/frontend/src/views/api-test/scenario/components/utils.ts b/frontend/src/views/api-test/scenario/components/utils.ts index 163d842e29..56460f86a6 100644 --- a/frontend/src/views/api-test/scenario/components/utils.ts +++ b/frontend/src/views/api-test/scenario/components/utils.ts @@ -137,8 +137,8 @@ export function getStepDetails(steps: ScenarioStepItem[], details: Record