From 1380c95efbd865753b5df4c2fcc1e440da573eab Mon Sep 17 00:00:00 2001 From: bgobandit Date: Tue, 11 Jun 2019 07:54:09 -0400 Subject: [PATCH] Clicking Search on Get Object/Mob/Turf with a blank input no longer crashes the console. (#44403) --- html/create_object.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/create_object.html b/html/create_object.html index 8464363fe75..f99e0e38faf 100644 --- a/html/create_object.html +++ b/html/create_object.html @@ -74,7 +74,8 @@ function updateSearch() { old_search = document.spawner.filter.value.toLowerCase(); - + if (!old_search) + return; var filtered = new Array(); var i;