fix typescript types

This commit is contained in:
imperosol
2025-03-07 17:56:08 +01:00
parent 0f6cda377c
commit 04c7df8ac8
4 changed files with 8 additions and 15 deletions

View File

@ -108,7 +108,7 @@ document.addEventListener("alpine:init", () => {
* Build the object containing the query parameters corresponding
* to the current filters
*/
getQueryParams(): ProductSearchProductsDetailedData {
getQueryParams(): Omit<ProductSearchProductsDetailedData, "url"> {
const search = this.search.length > 0 ? this.search : null;
// If active or archived products must be filtered, put the filter in the request
// Else, don't include the filter