diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 1f7a5a54c..6f16aa466 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 ?? [] }; };