[6.x] [ML] Fix opening Data Visualizer for recognized index (#18639)

This commit is contained in:
Pete Harverson 2018-04-30 12:56:14 +01:00 committed by GitHub
parent 6b8ce02a96
commit 0c2f46a1ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ export const RecognizedResult = ({
indexPattern,
savedSearch
}) => {
const id = (savedSearch.id === undefined) ?
const id = (savedSearch === undefined || savedSearch.id === undefined) ?
`index=${indexPattern.id}` :
`savedSearchId=${savedSearch.id}`;