Allowed filters in the url

This commit is contained in:
2026-08-11 20:04:11 +10:00
parent 9d175a1525
commit 65e8c7575e
@@ -213,17 +213,6 @@ function buildOptions(flights: Flight[]) {
const availableOptions = buildOptions(props.flights)
// When selected countries change, drop any selected regions that no longer
// belong to any of the selected countries.
watch(() => filters.country, (countries) => {
if (countries.length === 0) return
filters.airportRegion = filters.airportRegion.filter((regionId: number) => {
const region = availableOptions.airportRegions.find(r => r.id === regionId)
if (!region) return false
return [...region.countryCodes].some((code: string) => countries.includes(code))
})
})
// ── URL query sync ──────────────────────────────────────────────────────────
function loadFiltersFromQuery(): boolean {