diff --git a/showcases/patternhub/scripts/get-properties-file.js b/showcases/patternhub/scripts/get-properties-file.js index 282bad9e4c4..b5260d817d8 100644 --- a/showcases/patternhub/scripts/get-properties-file.js +++ b/showcases/patternhub/scripts/get-properties-file.js @@ -62,9 +62,7 @@ const getPropertiesFile = ({ displayName, description, props }) => { propertyTable += `| ${property.tsType.type ?? property.tsType.name} `; if ( - propertyKey === 'icon' || - propertyKey === 'iconAfter' || - propertyKey === 'messageIcon' + ['icon', 'iconAfter', 'messageIcon'].includes(propertyKey) ) { propertyTable += `| [IconTypes](https://db-ui.github.io/mono/review/main/foundations/icons/overview) |\n`; } else {