From 664e969730c3ed03608cdd19a74a38bb2dd143dd Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 14 Dec 2020 14:42:00 -0500 Subject: [PATCH] don't search if term is empty --- ui/component/wunderbarSuggestions/view.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/component/wunderbarSuggestions/view.jsx b/ui/component/wunderbarSuggestions/view.jsx index 0a80c661a..31b9f5b62 100644 --- a/ui/component/wunderbarSuggestions/view.jsx +++ b/ui/component/wunderbarSuggestions/view.jsx @@ -72,6 +72,10 @@ export default function WunderBarSuggestions(props: Props) { } function handleSelect(value) { + if (!value) { + return; + } + const includesLbryTvProd = value.includes(WEB_PROD_PREFIX); const includesLbryTvLocal = value.includes(WEB_LOCAL_PREFIX); const includesLbryTvDev = value.includes(WEB_DEV_PREFIX);