diff --git a/packages/eslint-plugin-pf-codemods/src/rules/v6/drawerContentReplaceNoBackgroundColorVariant/drawerContent-replace-noBackground-colorVariant.ts b/packages/eslint-plugin-pf-codemods/src/rules/v6/drawerContentReplaceNoBackgroundColorVariant/drawerContent-replace-noBackground-colorVariant.ts index d8af25ac4..0bfafa23f 100644 --- a/packages/eslint-plugin-pf-codemods/src/rules/v6/drawerContentReplaceNoBackgroundColorVariant/drawerContent-replace-noBackground-colorVariant.ts +++ b/packages/eslint-plugin-pf-codemods/src/rules/v6/drawerContentReplaceNoBackgroundColorVariant/drawerContent-replace-noBackground-colorVariant.ts @@ -42,6 +42,7 @@ module.exports = { drawerColorVariantEnumImport && drawerColorVariantEnumImport.local.name; const hasPatternFlyEnum = + colorVariantValue && colorVariantValue.object && colorVariantValue.object.name === drawerColorVariantLocalName; const hasNoBackgroundValue = colorVariantValue.property