-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security solution] Fixing console errors #163119
Conversation
x-pack/packages/security-solution/navigation/src/landing_links/landing_links_images_cards.tsx
Outdated
Show resolved
Hide resolved
x-pack/packages/security-solution/navigation/src/landing_links/landing_links_images_cards.tsx
Outdated
Show resolved
Hide resolved
const fetchAndSetDataView = async (dataViewId: string) => { | ||
const aDatView = await dataViews.get(dataViewId); | ||
if (ignore) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/plugins/discover/public/components/discover_container/discover_container.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/timelines/containers/all/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/common/containers/source/index.tsx
Outdated
Show resolved
Hide resolved
@@ -392,6 +378,13 @@ export const useTimelineEventsHandler = ({ | |||
filterStatus, | |||
]); | |||
|
|||
useEffect(() => { | |||
if (timelineResponse.totalCount > -1) { | |||
setUpdated(timelineResponse.updatedAt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -91,7 +91,7 @@ const SelectSystemPromptComponent: React.FC<Props> = ({ | |||
dropdownDisplay: ( | |||
<EuiFlexGroup gutterSize="none" key={ADD_NEW_SYSTEM_PROMPT}> | |||
<EuiFlexItem grow={true}> | |||
<EuiButtonEmpty iconType="plus" size="xs" data-test-subj="addSystemPrompt"> | |||
<EuiButtonEmpty href="#" iconType="plus" size="xs" data-test-subj="addSystemPrompt"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -76,7 +76,7 @@ export const ConnectorSelector: React.FC<Props> = React.memo( | |||
dropdownDisplay: ( | |||
<EuiFlexGroup gutterSize="none" key={ADD_NEW_CONNECTOR}> | |||
<EuiFlexItem grow={true}> | |||
<EuiButtonEmpty iconType="plus" size="xs"> | |||
<EuiButtonEmpty href="#" iconType="plus" size="xs"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
useEffect(() => { | ||
if (timelineResponse.updatedAt !== 0) { | ||
setUpdated(timelineResponse.updatedAt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{description} | ||
</EuiText> | ||
} | ||
titleElement="span" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</EuiText> | ||
} | ||
titleElement="span" | ||
description={<span css={styles.description}>{description}</span>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you.
Summary
Fixes a variety of console errors. Errors are described in the file changes.