autocomplete: fix exception when completing unsupported metatags.

This commit is contained in:
evazion
2020-12-20 01:27:48 -06:00
parent 28926c2332
commit 3ad4beac02
2 changed files with 10 additions and 0 deletions

View File

@@ -148,6 +148,8 @@ class AutocompleteService
autocomplete_saved_search_label(value)
when *STATIC_METATAGS.keys
autocomplete_static_metatag(metatag, value)
else
[]
end
results.map do |result|