[Security Solution] Fix artifacts in Events table (#86767) (#86795)

This commit is contained in:
Patryk Kopyciński 2020-12-22 22:30:43 +01:00 committed by GitHub
parent fffbe4dd92
commit 0a48997fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View file

@ -44,7 +44,6 @@ exports[`Columns it renders the expected columns 1`] = `
truncate={true}
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={3}
@ -75,7 +74,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="Access"
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={4}
@ -106,7 +104,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="Action"
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={5}
@ -137,7 +134,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="apache"
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={6}
@ -168,7 +164,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="192.168.0.1"
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={7}
@ -199,7 +194,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="192.168.0.3"
/>
</styled.div>
0
</styled.div>
<styled.div
$ariaColumnIndex={8}
@ -230,7 +224,6 @@ exports[`Columns it renders the expected columns 1`] = `
value="john.dee"
/>
</styled.div>
0
</styled.div>
</styled.div>
`;

View file

@ -117,17 +117,17 @@ export const DataDrivenColumns = React.memo<Props>(
})}
</>
</EventsTdContent>
{hasRowRenderers && (
{hasRowRenderers ? (
<EuiScreenReaderOnly data-test-subj="hasRowRendererScreenReaderOnly">
<p>{i18n.EVENT_HAS_AN_EVENT_RENDERER(ariaRowindex)}</p>
</EuiScreenReaderOnly>
)}
) : null}
{notesCount && (
{notesCount ? (
<EuiScreenReaderOnly data-test-subj="hasNotesScreenReaderOnly">
<p>{i18n.EVENT_HAS_NOTES({ row: ariaRowindex, notesCount })}</p>
</EuiScreenReaderOnly>
)}
) : null}
</EventsTd>
))}
</EventsTdGroupData>