From 019f78db111b4ce11f7fe5211713a10141e2c1e4 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 9 Jul 2023 17:51:05 +0800 Subject: [PATCH] fix-gitbook --- themes/gitbook/components/NavPostItem.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/gitbook/components/NavPostItem.js b/themes/gitbook/components/NavPostItem.js index 4d1637e9..a4cd7178 100644 --- a/themes/gitbook/components/NavPostItem.js +++ b/themes/gitbook/components/NavPostItem.js @@ -18,7 +18,7 @@ const NavPostItem = (props) => { } if (group?.category) { - return
+ return <>
@@ -30,13 +30,13 @@ const NavPostItem = (props) => {
)) } -
+ } else { - return
- {group?.items?.map(post => (
-
)) + return <> + {group?.items?.map(post => (
+
)) } -
+ } }