Add key for DataLinkButtons (#34935) (#34936)

(cherry picked from commit f16b2c40c1)

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot) 2021-05-28 16:20:54 -04:00 committed by GitHub
parent 5a68094a45
commit e9b6b66a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,15 +167,12 @@ class UnThemedLogDetailsRow extends PureComponent<Props, State> {
<td className={style.logDetailsLabel}>{parsedKey}</td>
<td className={cx(styles.wordBreakAll, wrapLogMessage && styles.wrapLine)}>
{parsedValue}
{links &&
links.map((link) => {
return (
<>
{links?.map((link) => (
<span key={link.title}>
&nbsp;
<DataLinkButton link={link} />
</>
);
})}
</span>
))}
{showFieldsStats && (
<LogLabelStats
stats={fieldStats!}