fix: suggest attributes on empty selector
parent
de488dbc28
commit
7bdd0e6e99
|
@ -58,11 +58,6 @@
|
|||
let options: SelectorOption[] = [];
|
||||
let searchResult: UpListing;
|
||||
const updateOptions = debounce(async (query: string, doSearch: boolean) => {
|
||||
if (query.length == 0) {
|
||||
options = [];
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case "attribute": {
|
||||
const allAttributes = await fetchAllAttributes();
|
||||
|
@ -104,6 +99,10 @@
|
|||
case "value": {
|
||||
options = [];
|
||||
|
||||
if (query.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (valueTypes === undefined || valueTypes.includes("Number")) {
|
||||
const number = parseFloat(query);
|
||||
if (!Number.isNaN(number)) {
|
||||
|
|
Loading…
Reference in New Issue