songs page add query limit option
This commit is contained in:
@@ -32,7 +32,11 @@ export const load: PageLoad = async ({ url, fetch, depends }) => {
|
||||
|
||||
await ensureSeeded({ fetch });
|
||||
|
||||
const songRows = await getSongsWithFilters(db, filters);
|
||||
const songRows = await getSongsWithFilters(
|
||||
db,
|
||||
filters,
|
||||
parsed.data?.songsLimit,
|
||||
);
|
||||
|
||||
return {
|
||||
filters: parsed.success ? parsed.data : {}, // Return original parsed data for form state
|
||||
|
||||
Reference in New Issue
Block a user