File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ export async function Sidebar({path, versions}: SidebarProps) {
60
60
61
61
return {
62
62
...platform ,
63
- url : platformPageForCurrentPath
64
- ? '/' + platformPageForCurrentPath . path + '/'
65
- : platform . url ,
63
+ url :
64
+ platformPageForCurrentPath && ! platformPageForCurrentPath . missing
65
+ ? '/' + platformPageForCurrentPath . path + '/'
66
+ : platform . url ,
66
67
guides : platform . guides . map ( guide => {
67
68
const guidePageForCurrentPath = nodeForPath ( rootNode , [
68
69
'platforms' ,
@@ -71,7 +72,7 @@ export async function Sidebar({path, versions}: SidebarProps) {
71
72
guide . name ,
72
73
...path . slice ( currentGuide ? 4 : 2 ) ,
73
74
] ) ;
74
- return guidePageForCurrentPath
75
+ return guidePageForCurrentPath && ! guidePageForCurrentPath . missing
75
76
? {
76
77
...guide ,
77
78
url : '/' + guidePageForCurrentPath . path + '/' ,
You can’t perform that action at this time.
0 commit comments