From d8832bfe432dab9ba1e4549025d2e198668df65e Mon Sep 17 00:00:00 2001 From: Yann Pringault Date: Tue, 15 Oct 2019 23:08:45 +0200 Subject: [PATCH] chore(docz-components): change item key and filename comparison (#1176) --- core/docz/src/components/Props.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/docz/src/components/Props.tsx b/core/docz/src/components/Props.tsx index 1376d534c..bbb2d1766 100644 --- a/core/docz/src/components/Props.tsx +++ b/core/docz/src/components/Props.tsx @@ -117,7 +117,8 @@ export const Props: SFC = ({ 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) || []