hotfix for bins page where it was using the wrong inventory to determine empty when using auto lidar, also changing the feature for libra cart to have a dash when being added as that is what is being checked for in the router and navigator

This commit is contained in:
csawatzky 2025-09-29 10:17:01 -06:00
parent 274ca2ea40
commit 9de058f6dd
3 changed files with 3 additions and 2 deletions

View file

@ -96,7 +96,7 @@ export class Bin {
}
public empty(): boolean {
return this.settings.inventory?.empty || (this.settings.inventory !== undefined && this.settings.inventory !== null && this.settings.inventory.grainBushels < 5);
return this.settings.inventory?.empty || (this.settings.inventory !== undefined && this.settings.inventory !== null && this.bushels() < 5);
}
public objectType(): pond.ObjectType {

View file

@ -345,6 +345,7 @@ export default function Bins(props: Props) {
let b = resp.data.bins.map(b => Bin.any(b));
b.forEach(bin => {
if (bin.empty()) {
console.log(bin.name())
empty.push(bin);
} else if (bin.storage() === pond.BinStorage.BIN_STORAGE_FERTILIZER) {
fert.push(bin);

View file

@ -129,7 +129,7 @@ export default function Users() {
"marketplace",
"installer",
"cnhi",
"libracart"
"libra-cart"
].sort();
const [rows, setRows] = useState<User[]>([])