* Fix bug of burn when have no data in burn datatable.

This commit is contained in:
xieqiyu
2022-05-16 11:50:54 +08:00
parent 48e5aff46d
commit ae00461660
+1
View File
@@ -3661,6 +3661,7 @@ class executionModel extends model
$firstBurn = empty($sets) ? 0 : reset($sets);
$firstTime = !empty($firstBurn->$burnBy) ? $firstBurn->$burnBy : (!empty($firstBurn->value) ? $firstBurn->value : 0);
$firstTime = $firstTime == 'null' ? 0 : $firstTime;
$days = count($dateList) - 1;
$rate = $days ? $firstTime / $days : '';
$baselineJSON = '[';