From 65e8c7575e53bd70aa7dd18eadf64a7bdbbd7851 Mon Sep 17 00:00:00 2001 From: josh Date: Tue, 11 Aug 2026 20:04:11 +1000 Subject: [PATCH] Allowed filters in the url --- .../js/Components/FlightsGoneBy/FlightFilter.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/resources/js/Components/FlightsGoneBy/FlightFilter.vue b/resources/js/Components/FlightsGoneBy/FlightFilter.vue index 8631612..89cf595 100644 --- a/resources/js/Components/FlightsGoneBy/FlightFilter.vue +++ b/resources/js/Components/FlightsGoneBy/FlightFilter.vue @@ -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 {