aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Searches.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js
index 42b82f8c..179915ea 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({});
@@ -173,7 +173,7 @@ const Searches = ({ server }) => {
creating={creating}
stopping={stopping}
removing={removing}
- disabled={!server.isConnected}
+ disabled={!server?.isConnected}
onCreate={create}
onStop={stop}
onRemove={remove}