Format changes

This commit is contained in:
Luca Deri 2024-02-28 16:03:13 +01:00
parent a472bc9b62
commit c422b2dcd4
3 changed files with 35 additions and 18 deletions

View file

@ -409,8 +409,8 @@ function historical_flow_details_formatter.formatHistoricalFlowDetails(flow)
end
if table.len(alert_json["proto"]) > 0 then
flow_details[#flow_details + 1] = format_historical_proto_info(alert_json["proto"])
flow_details[#flow_details + 1] = format_historical_proto_info(alert_json["proto"])
if (type(flow_details[#flow_details]['content']) == 'table') and
(table.len(flow_details[#flow_details]['content']) == 0) then
table.remove(flow_details, #flow_details)