File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const getStaticProps = async (context: any) => {
1616 const recordMap = await notion . getPage ( pageId )
1717
1818 // NOTE: this isn't necessary; trying to reduce my vercel bill
19- if ( recordMap . block [ 0 ] ! . value . space_id !== rootNotionSpaceId ) {
19+ if ( recordMap . block [ 0 ] ? .value ? .space_id !== rootNotionSpaceId ) {
2020 return {
2121 notFound : true
2222 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const getStaticProps = async (context: any) => {
99 const recordMap = await notion . getPage ( pageId )
1010
1111 // NOTE: this isn't necessary; trying to reduce my vercel bill
12- if ( recordMap . block [ 0 ] ! . value . space_id !== rootNotionSpaceId ) {
12+ if ( recordMap . block [ 0 ] ? .value ? .space_id !== rootNotionSpaceId ) {
1313 return {
1414 notFound : true
1515 }
You can’t perform that action at this time.
0 commit comments