diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/pinned_tab_content/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/pinned_tab_content/index.tsx index 8d809fd03f239..45c190c42605c 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/pinned_tab_content/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/pinned_tab_content/index.tsx @@ -96,9 +96,12 @@ export const PinnedTabContentComponent: React.FC = ({ ); const filterQuery = useMemo(() => { + if (isEmpty(pinnedEventIds)) { + return ''; + } const filterObj = Object.entries(pinnedEventIds).reduce( (acc, [pinnedId, isPinned]) => { - if (!isEmpty(isPinned)) { + if (isPinned) { return { ...acc, bool: {