Use graph-based offers and remove radius filters
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
This commit is contained in:
@@ -28,15 +28,13 @@ export function useCatalogSuppliers() {
|
||||
const fetchPage = async (offset: number, replace = false) => {
|
||||
if (replace) isLoading.value = true
|
||||
try {
|
||||
// If filtering by product, use nearestSuppliers with global search
|
||||
// (center point 0,0 with very large radius to cover entire globe)
|
||||
// If filtering by product, use nearestSuppliers (product-only list)
|
||||
if (filterProductUuid.value) {
|
||||
const data = await execute(
|
||||
NearestSuppliersDocument,
|
||||
{
|
||||
lat: 0,
|
||||
lon: 0,
|
||||
radius: 20000, // 20000 km radius covers entire Earth
|
||||
productUuid: filterProductUuid.value,
|
||||
limit: 500 // Increased limit for global search
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user