fix: 脑图下新增额外节点报错

--bug=1010308 --user=陈建星 【测试跟踪】github#10475 ,脑图下新增子项,不打标签,点击保存报错 https://www.tapd.cn/55049933/s/1105342
This commit is contained in:
chenjianxing 2022-02-17 18:16:01 +08:00 committed by fit2-zhao
parent 228b2c22fd
commit 49bbea3089
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ name: "TestCaseMinder",
this.saveModules.push(module);
},
buildExtraNode(data, parent, root) {
if (data.type !== 'node' && data.type !== 'tmp' && parent && isModuleNodeData(parent.data) && data.changed === true) {
if (data.type !== 'node' && data.type !== 'tmp' && parent && isModuleNodeData(parent) && data.changed === true) {
//
let nodes = this.saveExtraNode[parent.id];
if (!nodes) {