Refetch hubs/suppliers on product filter
Some checks failed
Build Docker Image / build (push) Has been cancelled

This commit is contained in:
Ruslan Bakiev
2026-02-07 13:29:17 +07:00
parent 87d3d5b1a7
commit d36409df57
2 changed files with 2 additions and 6 deletions

View File

@@ -146,9 +146,7 @@ export function useCatalogHubs() {
const setProductFilter = (uuid: string | null) => {
if (filterProductUuid.value === uuid) return // Early return if unchanged
filterProductUuid.value = uuid
if (isInitialized.value) {
fetchPage(0, true)
}
fetchPage(0, true)
}
const setBoundsFilter = (bounds: { west: number; south: number; east: number; north: number } | null) => {

View File

@@ -98,9 +98,7 @@ export function useCatalogSuppliers() {
const setProductFilter = (uuid: string | null) => {
if (filterProductUuid.value === uuid) return // Early return if unchanged
filterProductUuid.value = uuid
if (isInitialized.value) {
fetchPage(0, true)
}
fetchPage(0, true)
}
const setBoundsFilter = (bounds: { west: number; south: number; east: number; north: number } | null) => {