Storybook: Fix missing favorite and grafana icons (#90376)

ignore "fa fa-spinner" properly
This commit is contained in:
Ashley Harrison 2024-07-12 16:49:23 +01:00 committed by GitHub
parent b7767c79e7
commit c13f804ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ const stories = ['../src/Intro.mdx', storyGlob];
// We limit icon paths to only the available icons so publishing
// doesn't require uploading 1000s of unused assets.
const iconPaths = Object.keys(availableIconsIndex)
.filter((iconName) => !iconName.includes('fa'))
.filter((iconName) => !iconName.startsWith('fa '))
.map((iconName) => {
const subDir = getIconSubDir(iconName as IconName, 'default');
return {