Skip to content

Commit

Permalink
fixed package policy error message condition
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Jan 31, 2022
1 parent ac8a0ff commit 247c279
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export const CreatePackagePolicyPage: React.FunctionComponent = () => {
<CustomEuiBottomBar data-test-subj="integrationsBottomBar">
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false}>
{agentPolicy && packageInfo && formState === 'INVALID' ? (
{packageInfo && (formState === 'INVALID' || hasAgentPolicyError) ? (
<FormattedMessage
id="xpack.fleet.createPackagePolicy.errorOnSaveText"
defaultMessage="Your integration policy has errors. Please fix them before saving."
Expand Down

0 comments on commit 247c279

Please sign in to comment.