diff --git a/showcases/patternhub/scripts/utils.js b/showcases/patternhub/scripts/utils.js index c210ed708ff..77e6ffc4848 100644 --- a/showcases/patternhub/scripts/utils.js +++ b/showcases/patternhub/scripts/utils.js @@ -114,7 +114,7 @@ export const getCodeByFramework = ( tag = `db-${componentName}`; } - if (componentName === 'img' || componentName === 'a') { + if (['a', 'img'].includes(componentName)) { tag = componentName; }