Fix js error on undefined row_data.tags

This commit is contained in:
emanuele-f 2018-10-08 10:35:38 +02:00
parent 6e5c972ead
commit 3bae210e71
3 changed files with 6 additions and 5 deletions

View file

@ -770,8 +770,10 @@ function updateGraphsTableView(graph_table, view, graph_params, nindex_buttons)
} else
stats_div.hide();
}, rowCallback: function(row, row_data) {
if((params_obj.category && (row_data.tags.category === params_obj.category)) ||
(params_obj.protocol && (row_data.tags.protocol === params_obj.protocol))) {
if((typeof row_data.tags === "object") && (
(params_obj.category && (row_data.tags.category === params_obj.category)) ||
(params_obj.protocol && (row_data.tags.protocol === params_obj.protocol))
)) {
/* Highlight the row */
row.addClass("info");
}