Fix speed test alerts not generated

This commit is contained in:
emanuele-f 2020-04-17 12:22:45 +02:00
parent fdadaca950
commit 35be58ede9
6 changed files with 19 additions and 8 deletions

View file

@ -324,10 +324,7 @@ $(document).ready(function() {
sortable: false,
render: function(data, type, row) {
if(type === 'display' || type === 'filter') {
if(row.value_js_formatter && row.last_measure)
// Call the provided formatting function
return window[row.value_js_formatter](row.last_measure);
else if(row.last_measure)
if(row.last_measure)
return `${row.last_measure} ${row.unit}`
else
return "";