Browse Source

chore: fix articles read error

pull/30462/head
afc163 4 years ago
parent
commit
99e673462a
  1. 2
      site/theme/template/Resources/Articles/index.tsx

2
site/theme/template/Resources/Articles/index.tsx

@ -79,7 +79,7 @@ export default () => {
const articles = data[isZhCN ? 'cn' : 'en'];
const yearData: Record<number | string, Record<string, Article[]>> = {};
articles.forEach(article => {
articles?.forEach(article => {
const year = moment(article.date).year();
yearData[year] = yearData[year] || {};

Loading…
Cancel
Save