diff --git a/frontend/src/business/components/api/definition/components/import/ApiImport.vue b/frontend/src/business/components/api/definition/components/import/ApiImport.vue index cd7e7e78d4..66005eea1a 100644 --- a/frontend/src/business/components/api/definition/components/import/ApiImport.vue +++ b/frontend/src/business/components/api/definition/components/import/ApiImport.vue @@ -424,7 +424,11 @@ export default { param.saved = this.saved; param.model = this.model; if (this.currentModule) { - param.moduleId = this.formData.moduleId + if (!this.formData.moduleId || this.formData.moduleId.length === 0) { + param.moduleId = this.currentModule[0].id; + } else { + param.moduleId= this.formData.moduleId + } param.modeId = this.formData.modeId } param.projectId = this.projectId;