diff --git a/storybook/sidebar.js b/storybook/sidebar.js index d8ff2ba777dd7d..8a29d5f72ea6cf 100644 --- a/storybook/sidebar.js +++ b/storybook/sidebar.js @@ -41,7 +41,7 @@ function useIcons( item ) { return useMemo( () => { let data = {}; - if ( item.isComponent && item.children?.length ) { + if ( item.type === 'component' && item.children?.length ) { data = api.getData( item.children[ 0 ] ) ?? {}; }