songs add single song type to filters

This commit is contained in:
2026-02-06 11:17:06 -08:00
parent f3371e386a
commit f63841e69f
9 changed files with 96 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ export const load: PageLoad = async ({ url, fetch, depends }) => {
filters.globalPercentMin = parsed.data.gpm;
if (parsed.data.gpx !== undefined)
filters.globalPercentMax = parsed.data.gpx;
if (parsed.data.songType) filters.songTypes = [parsed.data.songType];
}
// Client-only DB: on the server `db` is null, so return [] and let hydration re-run load in browser.