Skip to content

Commit

Permalink
fix(docz): component Props false positives when looking in state
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 11, 2019
1 parent 058732d commit baa9bb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: [pedronauck]
patreon: pedronauck
open_collective: pedronauck
2 changes: 1 addition & 1 deletion core/docz/src/components/Props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const Props: SFC<PropsProps> = ({
stateProps &&
stateProps.length > 0 &&
stateProps.find(item =>
filename ? item.key === filename : item.key.includes(`${componentName}.`)
filename ? item.key === filename : item.key.includes(`/${componentName}.`)
)

const value = get('value', found) || []
Expand Down

0 comments on commit baa9bb3

Please sign in to comment.