From 83631d4106d0ce9b3e83ddf97f3c29ba4e324693 Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:45:37 +0200 Subject: [PATCH] fix: add fallback --- apps/client/src/pages/business/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/pages/business/index.tsx b/apps/client/src/pages/business/index.tsx index 6b2f43e8e..8734041a9 100644 --- a/apps/client/src/pages/business/index.tsx +++ b/apps/client/src/pages/business/index.tsx @@ -83,10 +83,13 @@ export default function BusinessPage(props: GetBusinessesData) { ); } -export const getServerSideProps: GetServerSideProps = async ({ locale, req }) => { +export const getServerSideProps: GetServerSideProps = async ({ + locale, + req, +}) => { const user = await getSessionUser(req); const [data] = await requestAll(req, [ - ["/businesses", { businesses: [], joinableBusinesses: [] }], + ["/businesses", { ownedBusinesses: [], joinedBusinesses: [], joinableBusinesses: [] }], ]); return {