Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
This commit is contained in:
parent
c49c4199b8
commit
e103f1ae49
|
@ -43,7 +43,10 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{
|
||||||
'data-test-subj': dataTestSubj,
|
'data-test-subj': dataTestSubj,
|
||||||
}) => {
|
}) => {
|
||||||
const pageTitle = useMemo(() => {
|
const pageTitle = useMemo(() => {
|
||||||
if ((from === 'package' || from === 'package-edit' || from === 'edit') && packageInfo) {
|
if (
|
||||||
|
(from === 'package' || from === 'package-edit' || from === 'edit' || from === 'policy') &&
|
||||||
|
packageInfo
|
||||||
|
) {
|
||||||
return (
|
return (
|
||||||
<EuiFlexGroup alignItems="center" gutterSize="m">
|
<EuiFlexGroup alignItems="center" gutterSize="m">
|
||||||
<EuiFlexItem grow={false}>
|
<EuiFlexItem grow={false}>
|
||||||
|
|
Loading…
Reference in a new issue