mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-04 09:54:16 +00:00
fix TS types
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user