aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-07-06 08:07:30 -0500
committerJP Dillingham <jp@dillingham.me>2023-07-06 08:07:30 -0500
commitfecf302665dce39e118b08354fc0d7020a3fd4d3 (patch)
tree8a4ceb79e1ab1b976094601f7c68bfbd4ce712da /src/web
parent9c588c05600b8f2573e6152764ca291e554d3bd7 (diff)
downloadslskd-fecf302665dce39e118b08354fc0d7020a3fd4d3.tar.gz
default server to an empty object
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Searches.js2
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({});