mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-15 07:26:48 +00:00
3.15
This commit is contained in:
@@ -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
|
||||
@@ -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": {
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user