From 0f41abd7cefb5669285a9be01b01d111c661ca4f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 17 Oct 2023 23:23:05 -0700 Subject: [PATCH] Update +page.server.ts --- src/routes/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 1f7a5a54..6f16aa46 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -19,6 +19,6 @@ export const load: PageServerLoad = async ({ url }) => { }); return { - models: models ? models.models : [] + models: models?.models ?? [] }; };