update UI

This commit is contained in:
Admin 2025-08-23 08:39:13 +07:00
parent d145558446
commit 8d463b0fc9
2 changed files with 23 additions and 2 deletions

View File

@ -1 +1,20 @@
[]
[
{
"title": "Cisco FPR2K-SLIDE-RAILS Mounting Rail Kit for FirePower FPR 2100 Series",
"price": 995,
"el": {},
"date": "2025-08-23T01:38:28.591Z"
},
{
"title": "Cisco AIR-PWRINJ6 Power Injector 8023at for Aironet Access Points",
"price": 95,
"el": {},
"date": "2025-08-23T01:38:28.591Z"
},
{
"title": "Cisco NM-1CE1T1-PRI - Fully Tested - 6 Month Warranty - Tax Invoice included",
"price": 75,
"el": {},
"date": "2025-08-23T01:38:28.591Z"
}
]

View File

@ -148,7 +148,9 @@ app.post("/", async (req, res) => {
// : !listedCodes.has(key);
// });
let filteredData = data.data.filter((item) => {
const key = `${item.title} - ${item.code}`.toLowerCase();
const key = item?.title.includes(item.code)
? `${item.title}`.toLowerCase()
: `${item.title} - ${item.code}`.toLowerCase();
if (status === "listed") {
return publistedData.some((i) =>