diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index f4d925a6cb..1e14b025b1 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -317,8 +317,8 @@ export default { }, data() { return { - onSampleError: false, - showConfigButtonWithOutPermission:false, + onSampleError: true, + showConfigButtonWithOutPermission: false, props: { label: "label", children: "hashTree" @@ -1035,7 +1035,11 @@ export default { this.currentScenario.headers = obj.headers; } this.enableCookieShare = obj.enableCookieShare; - this.onSampleError = obj.onSampleError; + if (obj.onSampleError === undefined) { + this.onSampleError = true; + } else { + this.onSampleError = obj.onSampleError; + } if (obj.hashTree) { obj.hashTree.forEach(item => { if (!item.hashTree) {