fix TS types

This commit is contained in:
imperosol
2025-06-30 18:34:30 +02:00
parent 6e724a9c74
commit a3ac04fc9e
10 changed files with 22 additions and 12 deletions

View File

@@ -167,7 +167,7 @@ document.addEventListener("alpine:init", () => {
});
// if products to download are already in-memory, directly take them.
// If not, fetch them.
const products =
const products: ProductSchema[] =
this.nbPages > 1
? await paginated(productSearchProductsDetailed, this.getQueryParams())
: Object.values<ProductSchema[]>(this.products).flat();