From 207943123bd3c4005063ff52729649bd1e2754f3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 23 Jun 2022 15:22:47 -0400 Subject: [PATCH] fix(striker-ui): duck-tape update server list with old search term --- striker-ui/pages/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/striker-ui/pages/index.tsx b/striker-ui/pages/index.tsx index a298f880..bfe54254 100644 --- a/striker-ui/pages/index.tsx +++ b/striker-ui/pages/index.tsx @@ -117,7 +117,10 @@ const Dashboard: FC = () => { const allServersWithScreenshots = [...serverListItems]; setAllServers(allServersWithScreenshots); - updateServerList(allServersWithScreenshots, inputSearchTerm); + // Don't update servers to include or exclude here to avoid + // updating using an outdated input search term. Remember this + // block is async and takes a lot longer to complete compared to + // the overview fetch. }) .catch(() => { item.isScreenshotStale = true;