mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #12286 from overleaf/msm-fix-sp-react
[web] Fix Null Pointer Exception with `templateLinks` in CE/SP GitOrigin-RevId: 3b5597e70e73bc605bece3d2f463f58c01acac8e
This commit is contained in:
@@ -221,7 +221,7 @@ function NewProjectButton({
|
||||
) : null}
|
||||
<MenuItem divider />
|
||||
<MenuItem header>{t('templates')}</MenuItem>
|
||||
{templateLinks.map((templateLink, index) => (
|
||||
{templateLinks?.map((templateLink, index) => (
|
||||
<MenuItem
|
||||
key={`new-project-button-template-${index}`}
|
||||
href={templateLink.url}
|
||||
|
||||
@@ -37,6 +37,6 @@ export type ExposedSettings = {
|
||||
siteUrl: string
|
||||
textExtensions: string[]
|
||||
validRootDocExtensions: string[]
|
||||
templateLinks: TemplateLink[]
|
||||
templateLinks?: TemplateLink[]
|
||||
labsEnabled: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user