mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
fix(mods): fix sorting not working without tag selected
This commit is contained in:
parent
0c2ce6527f
commit
9acbb7860b
1 changed files with 1 additions and 5 deletions
|
@ -135,11 +135,7 @@ export function getThemesFromSearch(
|
|||
): ZenTheme[] {
|
||||
const normalizedQuery = query.toLowerCase();
|
||||
|
||||
// If there's no query and no tags, return all themes (or handle no results case explicitly)
|
||||
if (!normalizedQuery && tags.length === 0) {
|
||||
return themes; // Or return an empty array [] if you want no results by default
|
||||
}
|
||||
|
||||
// Filter themes based on query, tags, and date
|
||||
const filteredThemes = themes.filter((theme) => {
|
||||
const matchesQuery = theme.name.toLowerCase().includes(normalizedQuery);
|
||||
const matchesTag =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue