diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph_investigation/graph_investigation.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph_investigation/graph_investigation.tsx index 6aebf5269e22d..4fa8823651ef1 100644 --- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph_investigation/graph_investigation.tsx +++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph_investigation/graph_investigation.tsx @@ -259,9 +259,10 @@ export const GraphInvestigation = memo( onOpenEventPreview, onOpenNetworkPreview, }: GraphInvestigationProps) => { + const emptyEntityIds = useMemo(() => [], []); const { searchFilters, setSearchFilters, entityIdsForApi } = useGraphFilters( scopeId, - entityIds ?? [], + entityIds ?? emptyEntityIds, dataView?.id ?? '' ); const [timeRange, setTimeRange] = useState(initialTimeRange);