fixed the temp and humidity on the bin cards in the drawer on the map, also fixed the drawer loading bins not in the yard

This commit is contained in:
csawatzky 2025-05-08 15:56:38 -06:00
parent 5f9d39e26d
commit 446147d4d5
4 changed files with 9 additions and 18 deletions

View file

@ -388,6 +388,8 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
(keys ? "&keys=" + keys.join(",") : "") +
(types ? "&types=" + types.join(",") : "")
console.log(url)
return new Promise<AxiosResponse<pond.ListBinsAndDataResponse>>((resolve, reject)=>{
get<pond.ListBinsAndDataResponse>(pondURL(url)).then(resp => {
resp.data = pond.ListBinsAndDataResponse.fromObject(resp.data)