diff --git a/x-pack/plugins/security_solution/public/notes/components/search_row.tsx b/x-pack/plugins/security_solution/public/notes/components/search_row.tsx index 1e88a47b2e2d2..f2e86d324a54a 100644 --- a/x-pack/plugins/security_solution/public/notes/components/search_row.tsx +++ b/x-pack/plugins/security_solution/public/notes/components/search_row.tsx @@ -7,9 +7,9 @@ import { EuiFlexGroup, EuiFlexItem, EuiSearchBar } from '@elastic/eui'; import React, { useMemo, useCallback } from 'react'; -import { useDispatch, useSelector } from 'react-redux'; +import { useDispatch } from 'react-redux'; import styled from 'styled-components'; -import { userSearchedNotes, selectNotesTableSearch } from '..'; +import { userSearchedNotes } from '..'; const SearchRowContainer = styled.div` &:not(:last-child) { @@ -36,8 +36,6 @@ export const SearchRow = React.memo(() => { [] ); - const notesSearch = useSelector(selectNotesTableSearch); - const onQueryChange = useCallback( ({ queryText }) => { dispatch(userSearchedNotes(queryText.trim())); @@ -49,12 +47,7 @@ export const SearchRow = React.memo(() => { - +