diff --git a/src/components/designer/modeling/CodeGenerator.vue b/src/components/designer/modeling/CodeGenerator.vue index 82407dcc..49f94c22 100644 --- a/src/components/designer/modeling/CodeGenerator.vue +++ b/src/components/designer/modeling/CodeGenerator.vue @@ -4136,13 +4136,15 @@ jobs: // } if (!set.has(item.code)) { codeBag.push("# "+ item.name + ": \n" + item.code); - if(option.keyword == "si" && item.name.includes("Test.java") && item.template === "https://github.com/msa-ez/topping-unit-test"){ - me.testFileList.push(item) - } - if(option.keyword == "si"){ - me.selectedCodeList[item.name] = item.code - } else { - set.add(item.code); + if(option){ + if(option.keyword == "si" && item.name.includes("Test.java") && item.template === "https://github.com/msa-ez/topping-unit-test"){ + me.testFileList.push(item) + } + if(option.keyword == "si"){ + me.selectedCodeList[item.name] = item.code + } else { + set.add(item.code); + } } } //me.$refs.codeViewer.$refs.collectedCodes = me.gptCodes /// Very BAD diff --git a/src/components/designer/modeling/generators/BMDialoger.vue b/src/components/designer/modeling/generators/BMDialoger.vue index bbab825a..6047b3fc 100644 --- a/src/components/designer/modeling/generators/BMDialoger.vue +++ b/src/components/designer/modeling/generators/BMDialoger.vue @@ -6,13 +6,13 @@
diff --git a/src/components/designer/modeling/generators/CJMDialoger.vue b/src/components/designer/modeling/generators/CJMDialoger.vue index b038a640..e1adb1fd 100644 --- a/src/components/designer/modeling/generators/CJMDialoger.vue +++ b/src/components/designer/modeling/generators/CJMDialoger.vue @@ -28,8 +28,8 @@