Hardened root layout initialization and ghost fallback logic to resolve 500 errors during API downtime.
This commit is contained in:
@@ -25,7 +25,7 @@ export async function load({ params, parent, url }) {
|
||||
|
||||
// ae_acct.slct.account_id = account_id;
|
||||
|
||||
const qry_limit = url.searchParams.get('limit') ?? 19;
|
||||
const qry_limit = parseInt(url.searchParams.get('limit') ?? '19');
|
||||
if (!qry_limit) {
|
||||
console.log(`qry_limit +page.ts: The qry_limit was not found in the params!!!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user