Skip to content

Commit 3473a7c

Browse files
committed
fix: correct optional chaining in socialPreview url check (#227)
1 parent 80fe125 commit 3473a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/app/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function hash(value: string): string {
3838
}
3939

4040
export function getSocialImage(data?: DocumentationLoader): string {
41-
if (!data?.config.socialPreview || !data) {
41+
if (!data?.config?.socialPreview) {
4242
return 'https://raw.githubusercontent.com/invertase/docs.page/main/docs/assets/docs-page-social.png';
4343
}
4444

0 commit comments

Comments
 (0)