This commit is contained in:
seb
2026-07-12 21:14:43 +02:00
parent ca190b2832
commit 7f6095013b

View File

@@ -40,7 +40,7 @@ export async function getCategoryList({ cursor = 0, limit = 20, rootCategoryId =
imghash: row.imgHash ?? null, imghash: row.imgHash ?? null,
imgsrc: row.imgHash ?? null, imgsrc: row.imgHash ?? null,
name: row.name, name: row.name,
pid: String(row.pid), pid: row.pid === rootCategoryId ? '0' : String(row.pid),
discounts: [], discounts: [],
sort: String(row.sort), sort: String(row.sort),
lastChanged: String(row.lastChanged), lastChanged: String(row.lastChanged),