removed files
This commit is contained in:
@@ -133,11 +133,17 @@ if (products.length === 0) {
|
||||
}
|
||||
|
||||
const listed = new Set(listedRows.map((row) => row.productid));
|
||||
/**
|
||||
* `subcatid`/`subcatname`, not `subcategoryid`/`subcategoryname`.
|
||||
*
|
||||
* This read the long names — the ones `getproductsubcategories` does NOT send —
|
||||
* so every entry was `undefined → undefined`, the map collapsed to a single
|
||||
* junk key, and check C below could never match. The footer duly announced
|
||||
* "(none returned)" for tenant 1147, whose category 2 has six subcategories.
|
||||
* A diagnostic that is confidently wrong is worse than one that is missing.
|
||||
*/
|
||||
const realSubs = new Map(
|
||||
(Array.isArray(subcategories) ? subcategories : []).map((row) => [
|
||||
row.subcategoryid,
|
||||
row.subcategoryname,
|
||||
]),
|
||||
(Array.isArray(subcategories) ? subcategories : []).map((row) => [row.subcatid, row.subcatname]),
|
||||
);
|
||||
|
||||
const inApp = new Set();
|
||||
|
||||
Reference in New Issue
Block a user