diff --git a/src/.vuepress/components/Extensions.vue b/src/.vuepress/components/Extensions.vue index 98bf1c76..73c662b3 100644 --- a/src/.vuepress/components/Extensions.vue +++ b/src/.vuepress/components/Extensions.vue @@ -39,10 +39,10 @@ export default { if (filters.search) { filteredGroup = filteredGroup.filter((ext) => - ext.name.toLowerCase().includes(filters.search.toLowerCase()) + ext.name.toLowerCase().includes(filters.search.toLowerCase()) || + ext.sources.some((source) => source.id.includes(filters.search)) ); } - filteredGroup = filteredGroup.filter((ext) => filters.nsfw === "Don't care" ? true : ext.nsfw === (filters.nsfw === "Yes" ? 1 : 0) ); @@ -50,7 +50,6 @@ export default { if (filters.sort && filters.sort === "Descending") { filteredGroup = filteredGroup.reverse(); } - if (filteredGroup.length) { filtered.push(filteredGroup); } diff --git a/src/.vuepress/components/Filters.vue b/src/.vuepress/components/Filters.vue index f69707ec..750917c7 100644 --- a/src/.vuepress/components/Filters.vue +++ b/src/.vuepress/components/Filters.vue @@ -1,6 +1,6 @@