test(ocme): cycle count intital improvements
This commit is contained in:
@@ -7,7 +7,7 @@ export function getlots() {
|
||||
queryFn: () => fetchSettings(),
|
||||
|
||||
staleTime: 10 * 1000,
|
||||
refetchInterval: 10 * 1000,
|
||||
//refetchInterval: 10 * 1000,
|
||||
refetchOnWindowFocus: true,
|
||||
});
|
||||
}
|
||||
@@ -17,5 +17,5 @@ const fetchSettings = async () => {
|
||||
// if we are not localhost ignore the devDir setting.
|
||||
//const url: string = window.location.host.split(":")[0];
|
||||
let lotData = data.data;
|
||||
return lotData;
|
||||
return lotData ?? [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user