diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-07-06 08:07:30 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-07-06 08:07:30 -0500 |
| commit | fecf302665dce39e118b08354fc0d7020a3fd4d3 (patch) | |
| tree | 8a4ceb79e1ab1b976094601f7c68bfbd4ce712da /src | |
| parent | 9c588c05600b8f2573e6152764ca291e554d3bd7 (diff) | |
| download | slskd-fecf302665dce39e118b08354fc0d7020a3fd4d3.tar.gz | |
default server to an empty object
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Search/Searches.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js index 42b82f8c..99051ae1 100644 --- a/src/web/src/components/Search/Searches.js +++ b/src/web/src/components/Search/Searches.js @@ -22,7 +22,7 @@ import SearchDetail from './Detail/SearchDetail'; import ErrorSegment from '../Shared/ErrorSegment'; import PlaceholderSegment from '../Shared/PlaceholderSegment'; -const Searches = ({ server }) => { +const Searches = ({ server } = {}) => { const [connecting, setConnecting] = useState(true); const [error, setError] = useState(undefined); const [searches, setSearches] = useState({}); |
