From 7b18e7ddf864247051a5b89233a782f1235f73f9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 11 Jan 2023 10:36:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=97=A0=E6=B3=95=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=96=87=E6=A1=A3=E6=96=AD=E8=A8=80=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/metersphere/metersphere/issues/21250 --- api-test/frontend/src/business/definition/api-definition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/definition/api-definition.js b/api-test/frontend/src/business/definition/api-definition.js index c60c683de3..d64a35755f 100644 --- a/api-test/frontend/src/business/definition/api-definition.js +++ b/api-test/frontend/src/business/definition/api-definition.js @@ -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;