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