From a0243e69a35777f16d0f39c59de7c6c6ca3903ab Mon Sep 17 00:00:00 2001 From: Julia Bardi Date: Tue, 22 Feb 2022 09:36:56 +0100 Subject: [PATCH] [7.17] backport fix for edit package policy page validation --- .../sections/agent_policy/edit_package_policy_page/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx index 80b0d8a2aec11..654357ee2fdad 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx @@ -339,6 +339,8 @@ export const EditPackagePolicyForm = memo<{ : false; if (!hasValidationErrors) { setFormState('VALID'); + } else { + setFormState('INVALID'); } }, [packagePolicy, updatePackagePolicyValidation]