UPDATE
This commit is contained in:
@@ -317,7 +317,7 @@ function getLayerArea(
|
|||||||
const pageSize = options?.pageSize ?? 10;
|
const pageSize = options?.pageSize ?? 10;
|
||||||
const useCache = options?.useCache ?? true;
|
const useCache = options?.useCache ?? true;
|
||||||
|
|
||||||
if (useCache) {
|
// if (useCache) {
|
||||||
const cached = readCachedArea(endpoint, farmUuid, page, pageSize);
|
const cached = readCachedArea(endpoint, farmUuid, page, pageSize);
|
||||||
|
|
||||||
if (cached) {
|
if (cached) {
|
||||||
@@ -332,7 +332,7 @@ function getLayerArea(
|
|||||||
});
|
});
|
||||||
return Promise.resolve(cached);
|
return Promise.resolve(cached);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
|
||||||
const params = new URLSearchParams({ farm_uuid: farmUuid });
|
const params = new URLSearchParams({ farm_uuid: farmUuid });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user