From aee777ca1d4c9c903707bc3406b3b0b2fb17c39d Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Mon, 20 Mar 2023 15:53:52 +0100 Subject: [PATCH] Merge pull request #12286 from overleaf/msm-fix-sp-react [web] Fix Null Pointer Exception with `templateLinks` in CE/SP GitOrigin-RevId: 3b5597e70e73bc605bece3d2f463f58c01acac8e --- .../js/features/project-list/components/new-project-button.tsx | 2 +- services/web/types/exposed-settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/project-list/components/new-project-button.tsx b/services/web/frontend/js/features/project-list/components/new-project-button.tsx index 22f3109b2b..ed78820df4 100644 --- a/services/web/frontend/js/features/project-list/components/new-project-button.tsx +++ b/services/web/frontend/js/features/project-list/components/new-project-button.tsx @@ -221,7 +221,7 @@ function NewProjectButton({ ) : null} {t('templates')} - {templateLinks.map((templateLink, index) => ( + {templateLinks?.map((templateLink, index) => (