mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 08:13:44 -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}
|
) : null}
|
||||||
<MenuItem divider />
|
<MenuItem divider />
|
||||||
<MenuItem header>{t('templates')}</MenuItem>
|
<MenuItem header>{t('templates')}</MenuItem>
|
||||||
{templateLinks.map((templateLink, index) => (
|
{templateLinks?.map((templateLink, index) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
key={`new-project-button-template-${index}`}
|
key={`new-project-button-template-${index}`}
|
||||||
href={templateLink.url}
|
href={templateLink.url}
|
||||||
|
|
|
@ -37,6 +37,6 @@ export type ExposedSettings = {
|
||||||
siteUrl: string
|
siteUrl: string
|
||||||
textExtensions: string[]
|
textExtensions: string[]
|
||||||
validRootDocExtensions: string[]
|
validRootDocExtensions: string[]
|
||||||
templateLinks: TemplateLink[]
|
templateLinks?: TemplateLink[]
|
||||||
labsEnabled: boolean
|
labsEnabled: boolean
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue