diff --git a/ui-pf4/src/main/webapp/src/containers/custom-rules/custom-rules.tsx b/ui-pf4/src/main/webapp/src/containers/custom-rules/custom-rules.tsx index 2244fcadc..26ddba822 100644 --- a/ui-pf4/src/main/webapp/src/containers/custom-rules/custom-rules.tsx +++ b/ui-pf4/src/main/webapp/src/containers/custom-rules/custom-rules.tsx @@ -275,7 +275,8 @@ export const CustomRules: React.FC = ({ isFetchingProject || isFetchingRules || isAnalysisContextBeingSaved || - errors.length > 0 + errors.length > 0 || + numberOfRules === 0 } /> ),