Properly check if a Set is empty or not.
@@ -1886,7 +1886,7 @@ class AutocompleteResults {
}
});
- if (!valueAttribute || Object.keys(popularityIndex).length === 0) {
+ if (!valueAttribute || popularityIndex.size === 0) {
return [];
@@ -2091,6 +2091,7 @@ class AutocompleteResults {
// The columnsDeferred gets resolved synchronously when the data is cached, if not, assume there are some suggestions.
columnSuggestions = await columnsPromise;
} catch (err) {}
+
if (!columnSuggestions.length) {