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:
parent
274ca2ea40
commit
9de058f6dd
3 changed files with 3 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ export class Bin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public empty(): boolean {
|
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 {
|
public objectType(): pond.ObjectType {
|
||||||
|
|
|
||||||
|
|
@ -345,6 +345,7 @@ export default function Bins(props: Props) {
|
||||||
let b = resp.data.bins.map(b => Bin.any(b));
|
let b = resp.data.bins.map(b => Bin.any(b));
|
||||||
b.forEach(bin => {
|
b.forEach(bin => {
|
||||||
if (bin.empty()) {
|
if (bin.empty()) {
|
||||||
|
console.log(bin.name())
|
||||||
empty.push(bin);
|
empty.push(bin);
|
||||||
} else if (bin.storage() === pond.BinStorage.BIN_STORAGE_FERTILIZER) {
|
} else if (bin.storage() === pond.BinStorage.BIN_STORAGE_FERTILIZER) {
|
||||||
fert.push(bin);
|
fert.push(bin);
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ export default function Users() {
|
||||||
"marketplace",
|
"marketplace",
|
||||||
"installer",
|
"installer",
|
||||||
"cnhi",
|
"cnhi",
|
||||||
"libracart"
|
"libra-cart"
|
||||||
].sort();
|
].sort();
|
||||||
|
|
||||||
const [rows, setRows] = useState<User[]>([])
|
const [rows, setRows] = useState<User[]>([])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue