Skip to content

Commit

Permalink
[Fleet] Fix edit component template without fleet datastream (#136686)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Jul 20, 2022
1 parent 0c78f8a commit e671125
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const StepReview: React.FunctionComponent<Props> = React.memo(
} = serializedComponentTemplate;

const isFleetDatastreamsVisible =
dataStreams?.length && componentTemplate._meta?.managed_by === MANAGED_BY_FLEET;
Boolean(dataStreams?.length) && componentTemplate._meta?.managed_by === MANAGED_BY_FLEET;

const SummaryTab = () => (
<div data-test-subj="summaryTab">
Expand Down Expand Up @@ -125,7 +125,7 @@ export const StepReview: React.FunctionComponent<Props> = React.memo(
</EuiDescriptionListDescription>
</EuiDescriptionList>
</EuiFlexItem>
{isFleetDatastreamsVisible && (
{isFleetDatastreamsVisible && dataStreams && (
<EuiFlexItem>
{/* Datastream mappings */}
<FormattedMessage
Expand Down

0 comments on commit e671125

Please sign in to comment.