Browse Source

Update +page.server.ts

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
0f41abd7ce
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
-		models: models ? models.models : []
+		models: models?.models ?? []
 	};
 };