Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-05-26 00:25:18 +02:00
parent fee40613f1
commit 59a0862d58
7 changed files with 15 additions and 37 deletions

View File

@ -80,10 +80,11 @@ PortfolioIndex.getInitialProps = async (context: NextPageContext) => {
if (!post.isStarted) {
await post.fetch()
}
const tags = []
if (!post.header) {
continue
}
const tags = []
for (const tg of post.header.tags || []) {
tags.push(tg.toLowerCase())
}