mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fix js error on undefined row_data.tags
This commit is contained in:
parent
6e5c972ead
commit
3bae210e71
3 changed files with 6 additions and 5 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue