Skip to content

Commit b4c2845

Browse files
b2whatsVladimir Akimov
andauthored
Fix: Show examples with targetIndex = 0 (#1573)
Co-authored-by: Vladimir Akimov <[email protected]>
1 parent 5223f8f commit b4c2845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/utils/getRouteData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default function getRouteData(
111111
{
112112
...filteredSections[0],
113113
components:
114-
filteredComponents && targetIndex
114+
filteredComponents && typeof targetIndex === 'number'
115115
? [filterComponentExamples(filteredComponents[0], targetIndex)]
116116
: [],
117117
},

0 commit comments

Comments
 (0)