Skip to content

Commit

Permalink
[Fleet] Render extension replacement component after package policy i…
Browse files Browse the repository at this point in the history
…nit (#151876)
  • Loading branch information
orouz authored Feb 26, 2023
1 parent 74b7929 commit 5de208b
Showing 1 changed file with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,23 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({
);
}

const replaceStepConfigurePackagePolicy = replaceDefineStepView && packageInfo?.name && (
<ExtensionWrapper>
<replaceDefineStepView.Component
agentPolicy={agentPolicy}
packageInfo={packageInfo}
newPolicy={packagePolicy}
onChange={handleExtensionViewOnChange}
validationResults={validationResults}
isEditPage={false}
/>
</ExtensionWrapper>
);
const replaceStepConfigurePackagePolicy =
replaceDefineStepView && packageInfo?.name ? (
!isInitialized ? (
<Loading />
) : (
<ExtensionWrapper>
<replaceDefineStepView.Component
agentPolicy={agentPolicy}
packageInfo={packageInfo}
newPolicy={packagePolicy}
onChange={handleExtensionViewOnChange}
validationResults={validationResults}
isEditPage={false}
/>
</ExtensionWrapper>
)
) : undefined;

const stepConfigurePackagePolicy = useMemo(
() =>
Expand Down

0 comments on commit 5de208b

Please sign in to comment.