- fixed bug with item route

- fixed visual bug with ids in item view
This commit is contained in:
Sören Oesterwind 2023-07-08 00:45:22 +02:00
parent 8d954052f2
commit c50aa8990c
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,9 @@ async function get(req: Request, res: Response) {
if (req.query.order === undefined) {
req.query.order = 'asc';
}
if(req.query.search === undefined) {
req.query.search = '';
}
if (req.query.id) {
// Check if number is a valid integer

View File

@ -59,8 +59,11 @@ function dataResponseHandler(res) {
item.SKU = `<p data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="ID: ${item.id}">${item.SKU}</p>`
});
///// --------------------------------- /////
setTimeout(() => {
activateTooltips();
}, 200);
return {"rows": json, total: total, totalNotFiltered: totalNotFiltered, totalRows: total};
}
loadPageData()