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

https://github.com/metersphere/metersphere/issues/21250
This commit is contained in:
wxg0103 2023-01-11 10:36:13 +08:00 committed by wxg0103
parent 214d5b90a7
commit 00a2acc734
1 changed files with 1 additions and 1 deletions

View File

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