search in typename if lengith > 2
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2024-01-03 18:17:04 +01:00
parent 49c0c94ec9
commit a5c3da9436
2 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ const fetch_rates = async () => {
const async_search = async (item) => {
try {
if (item.length >= 3) {
if (item.length >= 2) {
const response = await axios.get(route('products.search', item));
options_items.value = response.data.map((i) => { return { "item": i.name, "desc": i.typeName, "img": i.mainImageUrl, "code": i.code } });
console.log("VALUES=", options_items.value);