diff --git a/frontend/src/pages/index.vue b/frontend/src/pages/index.vue index 807f1149..cd28a6f9 100644 --- a/frontend/src/pages/index.vue +++ b/frontend/src/pages/index.vue @@ -89,6 +89,15 @@ function versions(platform: Platform) { }); } +function updatePlatform(platform: any) { + filters.value.platform = platform; + + const allowedVersion = versions(platform); + filters.value.versions = filters.value.versions.filter((existingVersion) => { + return allowedVersion.find((allowedNewVersion) => allowedNewVersion.version === existingVersion); + }); +} + const meta = useSeo("Home", null, route, null); const script = { type: "application/ld+json", @@ -167,7 +176,7 @@ useHead(meta);