mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 13:08:33 +01:00
fix(settings): guard empty-token copy, search platform filter and clear button
This commit is contained in:
@@ -35,6 +35,7 @@ export const useSettingsSearch = (query: string): SearchResult[] => {
|
||||
}
|
||||
}
|
||||
for (const o of SETTINGS_SEARCH_INDEX) {
|
||||
if (o.platforms && !o.platforms.includes(os)) continue;
|
||||
if (matchesQuery({ title: t(o.titleKey), keywords: o.keywords }, query)) {
|
||||
results.push({
|
||||
id: `${o.parentRoute}#${o.titleKey}`,
|
||||
|
||||
Reference in New Issue
Block a user