diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/MetersphereParserApiScenario.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/MetersphereParserApiScenario.java index 1488ed54aa..1e2f5fa417 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/MetersphereParserApiScenario.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/MetersphereParserApiScenario.java @@ -84,6 +84,7 @@ public class MetersphereParserApiScenario implements ApiScenarioImportParser { apiScenarioImportDetail.setSteps(parseResult.getStepList()); apiScenarioImportDetail.setStepDetails(parseResult.getStepDetails()); apiScenarioImportDetail.setProjectId(projectId); + apiScenarioImportDetail.setEnvironmentId(null); apiScenarioImportDetail.setApiScenarioCsvList(apiScenarioCsvMap.getOrDefault(apiScenarioDetail.getId(), new ArrayList<>())); return apiScenarioImportDetail; }