Don't add a dummy data point on chart initialization (not needed, will lead to that the current price is always 0 - references #22)

This commit is contained in:
Bernd Bestel 2018-07-26 21:23:37 +02:00
parent c64eb27ca1
commit 419445f5ae
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -75,12 +75,10 @@ Grocy.Components.ProductCard.ReInitPriceHistoryChart = function()
type: "line",
data: {
labels: [ //Date objects
new Date()
// Will be populated in Grocy.Components.ProductCard.Refresh
],
datasets: [{
data: [
0
// Will be populated in Grocy.Components.ProductCard.Refresh
],
fill: false,