Fixed error when adding a new entry.
This commit is contained in:
parent
48262fbcc8
commit
a7e26e7d96
@ -179,7 +179,9 @@ var ListViewModel = function() {
|
||||
// Transform to an array readable by jqplot Line renderer.
|
||||
var chartValues = [];
|
||||
$.each(entries, function(index, entry) {
|
||||
if(entry.value_date && unwrap(entry.value_date)) {
|
||||
chartValues.push([unwrap(entry.value_date), Number(unwrap(entry.sold))]);
|
||||
}
|
||||
});
|
||||
|
||||
return chartValues;
|
||||
|
Loading…
Reference in New Issue
Block a user