Skip to content

Commit

Permalink
Fix: Show examples with targetIndex = 0 (#1573)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Akimov <[email protected]>
  • Loading branch information
b2whats and Vladimir Akimov authored May 6, 2020
1 parent 5223f8f commit b4c2845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/utils/getRouteData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function getRouteData(
{
...filteredSections[0],
components:
filteredComponents && targetIndex
filteredComponents && typeof targetIndex === 'number'
? [filterComponentExamples(filteredComponents[0], targetIndex)]
: [],
},
Expand Down

0 comments on commit b4c2845

Please sign in to comment.