fix(striker-ui): duck-tape update server list with old search term

main
Tsu-ba-me 3 years ago
parent 89549cd317
commit 207943123b
  1. 5
      striker-ui/pages/index.tsx

@ -117,7 +117,10 @@ const Dashboard: FC = () => {
const allServersWithScreenshots = [...serverListItems]; const allServersWithScreenshots = [...serverListItems];
setAllServers(allServersWithScreenshots); 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(() => { .catch(() => {
item.isScreenshotStale = true; item.isScreenshotStale = true;

Loading…
Cancel
Save