diff --git a/packages/sitecore-jss/src/site/graphql-redirects-service.ts b/packages/sitecore-jss/src/site/graphql-redirects-service.ts index ef030254ae..63e4d85506 100644 --- a/packages/sitecore-jss/src/site/graphql-redirects-service.ts +++ b/packages/sitecore-jss/src/site/graphql-redirects-service.ts @@ -90,7 +90,7 @@ export class GraphQLRedirectsService { }); return redirectsResult - .then((result: RedirectsQueryResult) => result.site.siteInfo.redirects) + .then((result: RedirectsQueryResult) => result?.site?.siteInfo?.redirects || []) .catch((e) => Promise.reject(e)); }