From f5739dc51acd4edc78982be9d6158be46f41047f Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 29 Nov 2021 17:40:24 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CategoryList.js | 3 +++ components/TagList.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/components/CategoryList.js b/components/CategoryList.js index f9197cd8..d803ef78 100644 --- a/components/CategoryList.js +++ b/components/CategoryList.js @@ -2,6 +2,9 @@ import Link from 'next/link' import React from 'react' const CategoryList = ({ currentCategory, categories }) => { + if (!categories) { + return <> + } return