diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index b17ecaa11..714e45c09 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -1080,7 +1080,7 @@ this.formInlineRoleSwitching.roleSwitchingCode = '0' } if (!(this.roleSwitchingList.some(val => val.roleCode == this.formInlineRoleSwitching.roleSwitchingCode))) { - this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0].roleCode + this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : '' } this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching } })