mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01: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:
parent
c64eb27ca1
commit
419445f5ae
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user