From 1ce925a95d83be0a464b7f1b9b4ee2cf0967697d Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Fri, 27 Sep 2024 12:39:42 +1200 Subject: [PATCH] fixed cascading filtering --- package.json | 3 +++ src/routes/+page.svelte | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e470216..83570d1 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,9 @@ "eslint": "^9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-svelte": "^2.36.0", + "flowbite": "^2.5.1", + "flowbite-svelte": "^0.46.18", + "flowbite-svelte-icons": "^1.6.1", "globals": "^15.0.0", "prettier": "^3.1.1", "prettier-plugin-svelte": "^3.1.2", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index b028948..7bbc297 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -337,9 +337,9 @@ filteredTechnologies = filterTechnologiesByArray(results.active_services, 'categories', flattenFilter($categoryFilter)); // filter by analogues - filteredTechnologies = filterTechnologiesByArray(results.active_services, 'analogues', + filteredTechnologies = filterTechnologiesByArray(filteredTechnologies, 'analogues', flattenFilter($analogueFilter)); - filteredTechnologies = filterTechnologiesByValue(results.active_services, 'license', + filteredTechnologies = filterTechnologiesByValue(filteredTechnologies, 'license', flattenFilter($licenseFilter)); //filteredTechnologies = filterTechnologiesByCategoryList(results.all_services, flattenFilter($categoryFilter));