fix TS types

This commit is contained in:
imperosol committed 2025-06-30 18:35:53 +02:00
1 parent 6e724a9c74
commit a3ac04fc9e
10 files changed
+22 -12

No files matched your search

@@ -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();