2 Commits

Author SHA1 Message Date
4abddac94f Make search a little more responseive, hopefully 2024-08-14 12:52:11 +02:00
f12c353905 Add spellfix.dll 2024-08-14 12:49:31 +02:00
2 changed files with 12 additions and 11 deletions

View File

@@ -30,6 +30,18 @@
name = name.trim();
if (!name) {
foodSearch = [];
} else {
if (!per100Edited)
GetLastPer100(name.trim()).then((res) => {
// Prevent search when there's nothing to search
// Sometimes we get search results after deleting name
console.log(name.trim(), res);
if (res.success && res.data && name) {
foodSearch = res.data;
} else {
foodSearch = [];
}
});
}
}
@@ -69,17 +81,6 @@
nameElement.focus();
foodSearch = [];
}
if (!per100Edited)
GetLastPer100(name.trim()).then((res) => {
// Prevent search when there's nothing to search
// Sometimes we get search results after deleting name
if (res.success && res.data && name) {
foodSearch = res.data;
} else {
foodSearch = [];
}
});
}
let hiLiteIndex: number | null = null;

BIN
spellfix.dll Normal file

Binary file not shown.