mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
e6a8f3d04f
commit
aee777ca1d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue