Skip to content

Commit

Permalink
Fix metadata version
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed May 5, 2020
1 parent f9c535f commit caa2bb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ export const AgentDetailsContent: React.FunctionComponent<{
defaultMessage: 'Agent version',
}),
description:
typeof agent.local_metadata['elastic.agent'] === 'object' &&
typeof agent.local_metadata['elastic.agent'].version === 'string'
? agent.local_metadata['elastic.agent'].version
typeof agent.local_metadata.elastic === 'object' &&
typeof agent.local_metadata.elastic.agent === 'object' &&
typeof agent.local_metadata.elastic.agent.version === 'string'
? agent.local_metadata.elastic.agent.version
: '-',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
},
},
{
field: 'local_metadata["elastic.agent"].version',
field: 'local_metadata.elastic.agent.version',
width: '100px',
name: i18n.translate('xpack.ingestManager.agentList.versionTitle', {
defaultMessage: 'Version',
Expand Down

0 comments on commit caa2bb1

Please sign in to comment.