fix(接口定义): 修复报告重置触发方式页面报错的缺陷
--bug=1017364 --user=王孝刚 【接口测试】接口报告 - 用例报告,重置触发方式下拉筛选框,页面会报错 https://www.tapd.cn/55049933/s/1252659
This commit is contained in:
parent
fc9b1089ab
commit
251cabc947
|
@ -551,7 +551,7 @@ public class ApiDefinitionExecResultService {
|
|||
|
||||
private void initReportRequest(QueryAPIReportRequest request) {
|
||||
if (request != null) {
|
||||
if (MapUtils.isNotEmpty(request.getFilters()) && request.getFilters().containsKey("trigger_mode")) {
|
||||
if (MapUtils.isNotEmpty(request.getFilters()) && request.getFilters().containsKey("trigger_mode") && CollectionUtils.isNotEmpty(request.getFilters().get("trigger_mode"))) {
|
||||
boolean filterHasApi = false;
|
||||
for (String triggerMode : request.getFilters().get("trigger_mode")) {
|
||||
if (StringUtils.equalsIgnoreCase(triggerMode, "api")) {
|
||||
|
|
Loading…
Reference in New Issue