Browse Source

Update +page.server.ts

Timothy J. Baek 1 year ago
parent
commit
0f41abd7ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/+page.server.ts

+ 1 - 1
src/routes/+page.server.ts

@@ -19,6 +19,6 @@ export const load: PageServerLoad = async ({ url }) => {
 		});
 		});
 
 
 	return {
 	return {
-		models: models ? models.models : []
+		models: models?.models ?? []
 	};
 	};
 };
 };