diff --git a/static/js/findElement.js b/static/js/findElement.js index b516b7c7..7bb4cda9 100644 --- a/static/js/findElement.js +++ b/static/js/findElement.js @@ -118,7 +118,7 @@ pandora.ui.findElement = function() { ? pandora.user.ui._findState.key : that.value()[pandora.user.ui._list ? 1 : 0], findKey = Ox.getObjectById(pandora.site.findKeys, key); - return findKey.autocomplete ? function(value, callback) { + return findKey && findKey.autocomplete ? function(value, callback) { value === '' && Ox.Log('', 'Warning: autocomplete function should never be called with empty value'); pandora.api.autocomplete({ key: key,