correction for when there is no data for the graph to use the correct inventory (settings or status)
This commit is contained in:
parent
2bd04acb68
commit
5341c38ce2
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ export default function BinLevelOverTime(props: Props) {
|
|||
}
|
||||
});
|
||||
if (data.length === 0) {
|
||||
let bushels = bin.settings.inventory?.grainBushels ?? 0;
|
||||
let bushels = bin.bushels();
|
||||
let currentTime = moment().valueOf();
|
||||
data.push({
|
||||
value: fertilizerBin
|
||||
|
|
@ -166,7 +166,7 @@ export default function BinLevelOverTime(props: Props) {
|
|||
});
|
||||
});
|
||||
if (autoBarData.length === 0) {
|
||||
let bushels = bin.settings.inventory?.grainBushels ?? 0;
|
||||
let bushels = bin.bushels();
|
||||
let currentTime = moment().valueOf();
|
||||
autoBarData.push({
|
||||
value: fertilizerBin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue