Skip to content

Commit

Permalink
Re-add 'policy' check for Add Integration header (elastic#121766) (el…
Browse files Browse the repository at this point in the history
…astic#121783)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
  • Loading branch information
kibanamachine and kpollich authored Dec 21, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0cd469c commit ab16b96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{
'data-test-subj': dataTestSubj,
tabs = [],
}) => {
const isAdd = useMemo(() => ['package'].includes(from), [from]);
const isAdd = useMemo(() => ['package', 'policy'].includes(from), [from]);
const isEdit = useMemo(() => ['edit', 'package-edit'].includes(from), [from]);
const isUpgrade = useMemo(
() =>

0 comments on commit ab16b96

Please sign in to comment.