[Logs UI] Fix value completion in the logs stream query bar (#85772)

This ensures that the correct index name pattern is passed as the fake `IIndexPattern` `title`.
This commit is contained in:
Felix Stürmer 2020-12-17 14:47:26 +01:00 committed by GitHub
parent 93dcaeea68
commit 2106419007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ export const useLogSource = ({ sourceId, fetch }: { sourceId: string; fetch: Htt
const derivedIndexPattern = useMemo(
() => ({
fields: sourceStatus?.logIndexFields ?? [],
title: sourceConfiguration?.configuration.name ?? 'unknown',
title: sourceConfiguration?.configuration.logAlias ?? 'unknown',
}),
[sourceConfiguration, sourceStatus]
);