Fix bug when empty record
This commit is contained in:
@@ -117,7 +117,7 @@ $(document).ajaxStop(function () {
|
||||
var benchmark_obj = element[benchmark];
|
||||
if (benchmark_obj) {
|
||||
var record = benchmark_obj[measureType][engine];
|
||||
if (record) {
|
||||
if (record && Object.keys(record).length > 0) {
|
||||
sum = Object.sum(record);
|
||||
maxTest = Object.maxKey(record);
|
||||
max = record[maxTest];
|
||||
|
||||
Reference in New Issue
Block a user