changing determination of empty to being less than 5 bushels because if hte auto inventory sets it to 0 it causes null issues between golang and the DB
This commit is contained in:
parent
d5f3cb727c
commit
7ef12f1078
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ export class Bin {
|
|||
}
|
||||
|
||||
public empty(): boolean {
|
||||
return this.settings.inventory?.empty || this.settings.inventory?.grainBushels === 0;
|
||||
return this.settings.inventory?.empty || (this.settings.inventory !== undefined && this.settings.inventory !== null && this.settings.inventory.grainBushels < 5);
|
||||
}
|
||||
|
||||
public objectType(): pond.ObjectType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue