Skip to content

Commit

Permalink
hotfix(renderSoMe): check if soMeLinkArray exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 20, 2024
1 parent fd5b4e5 commit 2b3b7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/navigation/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const renderSoMe = (data: Navigation, soMeData: SocialMediaProfiles) => {
const socialMediaSections = filterSectionsByType(data, "socialMedia");
return (
socialMediaSections &&
soMeData.soMeLinkArray &&
renderList(
soMeData.soMeLinkArray.map((link: SocialMediaLink) => (
<li key={link._key}>
Expand Down
2 changes: 1 addition & 1 deletion studio/lib/interfaces/socialMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export interface SocialMediaLink {
export interface SocialMediaProfiles {
_id: string;
_type: typeof soMeLinksID;
soMeLinkArray: SocialMediaLink[];
soMeLinkArray?: SocialMediaLink[];
}

0 comments on commit 2b3b7be

Please sign in to comment.