From 891241e81d0b63099ea11d0107c6c1f54f97f127 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Mon, 26 Sep 2022 10:27:41 -0400 Subject: [PATCH] Fixes empty search results in graph --- src/webviews/apps/plus/graph/GraphWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webviews/apps/plus/graph/GraphWrapper.tsx b/src/webviews/apps/plus/graph/GraphWrapper.tsx index 2fc5811..34237ee 100644 --- a/src/webviews/apps/plus/graph/GraphWrapper.tsx +++ b/src/webviews/apps/plus/graph/GraphWrapper.tsx @@ -264,7 +264,7 @@ export function GraphWrapper({ }, [graphRows]); useEffect(() => { - if (searchResultIds == null) { + if (searchResultIds == null || searchResultIds.length === 0) { setSearchResultKey(undefined); return; }