diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-01-27 22:15:55 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-01-27 22:15:55 -0600 |
| commit | 32e0b716b7cc90b727bb2901b00ad0f41234410d (patch) | |
| tree | 13c7ef7626bdbfb2201433ebb415ff77ce73264f /src | |
| parent | daa6baca2e28b480889f7db721d5e1fbbc422723 (diff) | |
| download | slskd-32e0b716b7cc90b727bb2901b00ad0f41234410d.tar.gz | |
update UI when 'create' is received
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Search/Searches.jsx | 2 |
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) => |
