fix(接口定义): 修复场景保存文档断言失败的缺陷

--bug=1022333 --user=王孝刚 【接口测试】github#21527,场景中的接口添加文档结构断言,保存失败
https://www.tapd.cn/55049933/s/1331762
This commit is contained in:
wxg0103 2023-02-06 14:00:15 +08:00 committed by wxg0103
parent 236346d0eb
commit bc608e60b7
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export function stepCompute(array, request) {
export function mergeDocumentData(originalData, childMap, rootData) { export function mergeDocumentData(originalData, childMap, rootData) {
originalData.forEach((item) => { originalData.forEach((item) => {
if (item.id === 'root') { if (item.id === 'root' && rootData) {
item.type = rootData.type; item.type = rootData.type;
item.name = rootData.name; item.name = rootData.name;
item.typeVerification = rootData.typeVerification; item.typeVerification = rootData.typeVerification;