updated all uses of as in the api files to use the global state as well as a passed in value, will give priority to the passed in value and fall back to the state if it is undefined.

This commit is contained in:
csawatzky 2025-04-28 10:47:59 -06:00
parent b404c45a4f
commit 59f7f7f4e1
25 changed files with 673 additions and 535 deletions

View file

@ -304,7 +304,7 @@ import { Result } from "@mapbox/mapbox-gl-geocoder";
const loadGrainBags = useCallback(() => {
grainBagAPI
.listGrainBags(100, 0, undefined, undefined, undefined, undefined, undefined, undefined, undefined, as)
.listGrainBags(100, 0, undefined, undefined, undefined, undefined, undefined, undefined, as)
.then(resp => {
let bags: Map<string, BagModel> = new Map();
let bagOp: BagModel[] = [];
@ -376,7 +376,7 @@ import { Result } from "@mapbox/mapbox-gl-geocoder";
let yardEntries: Result[] = [];
binYardAPI
.listBinYards(400, 0, "asc", undefined, undefined, undefined, undefined, as)
.listBinYards(400, 0, "asc", undefined, undefined, undefined, as)
.then(resp => {
resp.data.yard.forEach(yard => {
if (yard.settings) {