From df9961613485cae6846a430a5dad8ec98c087380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Tue, 17 Jan 2023 09:18:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(footer):=20fixed=20footer=20may=20be=20null?= =?UTF-8?q?=20or=20undefined=E2=80=A6=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/common/footer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/common/footer.jsx b/layout/common/footer.jsx index baa52f5..fcdecd9 100644 --- a/layout/common/footer.jsx +++ b/layout/common/footer.jsx @@ -86,7 +86,7 @@ module.exports = cacheComponent(Footer, 'common.footer', props => { siteYear: date(new Date(), 'YYYY'), author, links, - copyright: footer.copyright, + copyright: footer?.copyright ?? '', showVisitorCounter: plugins && plugins.busuanzi === true, visitorCounterTitle: _p('plugin.visitor_count', '0') };