This commit is contained in:
tangly1024.com
2023-06-07 15:44:26 +08:00
parent 00d32c81e0
commit d98d1f4c4b
4 changed files with 4 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
NEXT_PUBLIC_VERSION=3.14.0
NEXT_PUBLIC_VERSION=3.15.0

View File

@@ -1,6 +1,6 @@
{
"name": "notion-next",
"version": "3.14.0",
"version": "3.15.0",
"homepage": "https://github.com/tangly1024/NotionNext.git",
"license": "MIT",
"repository": {

View File

@@ -126,7 +126,7 @@ export async function getStaticProps({ params: { slug } }) {
const from = `slug-props-${fullSlug}`
const props = await getGlobalNotionData({ from })
// 在列表内查找文章
props.post = props.allPages.find((p) => {
props.post = props?.allPages?.find((p) => {
return p.slug === fullSlug || p.id === idToUuid(fullSlug)
})

View File

@@ -6,7 +6,7 @@ import React from 'react'
import Link from 'next/link'
export const LayoutTag = (props) => {
const tag = props.tagOptions.find((t) => {
const tag = props?.tagOptions?.find((t) => {
return t.name === props.tag
})