From 465a7ff89f1b61166fa1861bcdbfdce65492fb46 Mon Sep 17 00:00:00 2001 From: Carlos Esteban Feria Vila <2582866+carlosthe19916@users.noreply.github.com> Date: Mon, 11 Jan 2021 11:25:42 +0100 Subject: [PATCH] Add validation to rules --- .../main/webapp/src/containers/custom-rules/custom-rules.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e308f5c31..fec842c1e 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 @@ -236,7 +236,7 @@ export const CustomRules: React.FC = ({ onChange={(isChecked) => handleRulePathToggled(isChecked, item) } - isDisabled={errors.length > 0} + isDisabled={errors.length > 0 || numberOfRules === 0} /> ), },