feat: show only isActive
This commit is contained in:
parent
4c1514f2a7
commit
e618090c7c
|
@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category,
|
|||
LEFT JOIN image im
|
||||
ON im.collectionFk = 'catalog'
|
||||
AND im.name = i.image
|
||||
WHERE i.longName LIKE CONCAT('%', #search, '%')
|
||||
OR i.id = #search
|
||||
WHERE (i.longName LIKE CONCAT('%', #search, '%')
|
||||
OR i.id = #search ) AND i.isActive = 1
|
||||
ORDER BY i.longName LIMIT 50`;
|
||||
|
||||
const onSearch = data => (items.value = data || []);
|
||||
|
|
Loading…
Reference in New Issue