Explorer: trim whitespace in search bar (#13258)
This commit is contained in:
parent
e7b7c15198
commit
de71fb9bdd
|
@ -164,7 +164,8 @@ function buildTokenOptions(search: string, cluster: Cluster) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildOptions(search: string, cluster: Cluster) {
|
function buildOptions(rawSearch: string, cluster: Cluster) {
|
||||||
|
const search = rawSearch.trim();
|
||||||
if (search.length === 0) return [];
|
if (search.length === 0) return [];
|
||||||
|
|
||||||
const options = [];
|
const options = [];
|
||||||
|
|
Loading…
Reference in New Issue