diff --git a/CODEOWNERS b/CODEOWNERS index fa51963..be17392 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,4 @@ -* @contentstack/tso-integration-pr-reviewers +* @contentstack/marketplace-solutions-pr-reviewers .github/workflows/sca-scan.yml @contentstack/security-admin diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index ce0b474..18b0f00 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -79,9 +79,12 @@ const MenuSection = ({ export function Footer(fetchdata: any) { const footerMetaObject = fetchdata?.footerMetaObject; const footerData = footerMetaObject?.metaobjects?.nodes?.[0]?.fields; - const sortedFooterData = footerData.sort((a: any, b: any) => { - return MENU_ORDER.indexOf(a.key) - MENU_ORDER.indexOf(b.key); - }); + const sortedFooterData = Array.isArray(footerData) + ? [...footerData].sort( + (a: any, b: any) => + MENU_ORDER.indexOf(a.key) - MENU_ORDER.indexOf(b.key), + ) + : []; return (