aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-05-02 22:24:05 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-05-02 22:24:05 -0500
commit35730a9445490fb8932df0b151ae6f6abd2cedc0 (patch)
tree10452de4be248b4f6edb8a752d08d14d31db3059 /src/web
parentc7b7468622484afbd4afdb4448b72323d9fb2e32 (diff)
downloadslskd-35730a9445490fb8932df0b151ae6f6abd2cedc0.tar.gz
add defaults
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/List/SearchList.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Search/List/SearchList.js b/src/web/src/components/Search/List/SearchList.js
index b1b006ec..48414772 100644
--- a/src/web/src/components/Search/List/SearchList.js
+++ b/src/web/src/components/Search/List/SearchList.js
@@ -14,7 +14,7 @@ import {
List
} from 'semantic-ui-react';
-const SearchList = ({ connecting, error, searches, onRemove, onStop }) => {
+const SearchList = ({ connecting = false, error = undefined, searches = {}, onRemove = () => {}, onStop = () => {} }) => {
const searchCount = useMemo(() => {
return Object.values(searches).length
}, [searches])