aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-01-27 22:15:55 -0600
committerJP Dillingham <jp@dillingham.me>2025-01-27 22:15:55 -0600
commit32e0b716b7cc90b727bb2901b00ad0f41234410d (patch)
tree13c7ef7626bdbfb2201433ebb415ff77ce73264f /src
parentdaa6baca2e28b480889f7db721d5e1fbbc422723 (diff)
downloadslskd-32e0b716b7cc90b727bb2901b00ad0f41234410d.tar.gz
update UI when 'create' is received
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Searches.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Search/Searches.jsx b/src/web/src/components/Search/Searches.jsx
index 362ec4fd..d50462ba 100644
--- a/src/web/src/components/Search/Searches.jsx
+++ b/src/web/src/components/Search/Searches.jsx
@@ -73,7 +73,7 @@ const Searches = ({ server } = {}) => {
});
searchHub.on('create', (search) => {
- console.log('search', search);
+ onUpdate((old) => ({ ...old, [search.id]: search }));
});
searchHub.onreconnecting((connectionError) =>