Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
chore(docz-components): change item key and filename comparison (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerumen authored and rakannimer committed Oct 15, 2019
1 parent a2782a9 commit d8832bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/docz/src/components/Props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export const Props: SFC<PropsProps> = ({
stateProps &&
stateProps.length > 0 &&
stateProps.find(
item => item.key.includes(`/${componentName}.`) || item.key === filename
item =>
item.key.includes(`/${componentName}.`) || item.key.includes(filename)
)

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

0 comments on commit d8832bf

Please sign in to comment.