fix(接口定义): 修复场景无法保存文档断言的缺陷
https://github.com/metersphere/metersphere/issues/21250
This commit is contained in:
parent
214d5b90a7
commit
00a2acc734
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue