From 9f8ebdebe2fbb340a06a8d26aea0a404f6f3bc2e Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:41:46 +0200 Subject: [PATCH] Fix status icons --- storybook/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] ) ?? {}; }