aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-01-29 23:28:57 -0600
committerGitHub <noreply@github.com>2025-01-29 23:28:57 -0600
commita2e1e65b7f8500345139b15e2646c27e729a4abf (patch)
tree13c7ef7626bdbfb2201433ebb415ff77ce73264f /src/web
parentf3b79d3b4e4c79f77f5a9f87f06304ba1222dd12 (diff)
parent32e0b716b7cc90b727bb2901b00ad0f41234410d (diff)
downloadslskd-a2e1e65b7f8500345139b15e2646c27e729a4abf.tar.gz
Merge pull request #1286 from slskd/search
Fix 'stuck' searches, including those that contain a single letter
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Searches.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/src/components/Search/Searches.jsx b/src/web/src/components/Search/Searches.jsx
index 471f833d..d50462ba 100644
--- a/src/web/src/components/Search/Searches.jsx
+++ b/src/web/src/components/Search/Searches.jsx
@@ -72,7 +72,9 @@ const Searches = ({ server } = {}) => {
});
});
- searchHub.on('create', () => {});
+ searchHub.on('create', (search) => {
+ onUpdate((old) => ({ ...old, [search.id]: search }));
+ });
searchHub.onreconnecting((connectionError) =>
onConnectionError(connectionError?.message ?? 'Disconnected'),