mirror of
https://github.com/grocy/grocy.git
synced 2025-08-29 01:14:24 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user