diff --git a/frontend/src/business/components/api/definition/api-definition.js b/frontend/src/business/components/api/definition/api-definition.js index 305bcf9865..f1d813db74 100644 --- a/frontend/src/business/components/api/definition/api-definition.js +++ b/frontend/src/business/components/api/definition/api-definition.js @@ -181,7 +181,7 @@ export function mergeRequestDocumentData(request) { if (request && request.hashTree && request.hashTree.length > 0) { let index = request.hashTree.findIndex(item => item.type === 'Assertions'); if (index !== -1) { - if (request.hashTree[index].document.originalData && request.hashTree[index].document.tableData.size && request.hashTree[index].document.tableData.size !== 0) { + if (request.hashTree[index].document && request.hashTree[index].document.originalData && request.hashTree[index].document.tableData.size && request.hashTree[index].document.tableData.size !== 0) { mergeDocumentData(request.hashTree[index].document.originalData, request.hashTree[index].document.tableData); request.hashTree[index].document.data.json = request.hashTree[index].document.originalData; }