diff --git a/storefront/cypress/snapshots/e2e/visits/simpleVisitsWithScreenshots.cy.ts/stores page visit with screenshot (stores page).png b/storefront/cypress/snapshots/e2e/visits/simpleVisitsWithScreenshots.cy.ts/stores page visit with screenshot (stores page).png index edbbe41792..981112555a 100644 Binary files a/storefront/cypress/snapshots/e2e/visits/simpleVisitsWithScreenshots.cy.ts/stores page visit with screenshot (stores page).png and b/storefront/cypress/snapshots/e2e/visits/simpleVisitsWithScreenshots.cy.ts/stores page visit with screenshot (stores page).png differ diff --git a/storefront/utils/filterOptions/mapParametersFilter.ts b/storefront/utils/filterOptions/mapParametersFilter.ts index 73611fa76e..1d556d6ca9 100644 --- a/storefront/utils/filterOptions/mapParametersFilter.ts +++ b/storefront/utils/filterOptions/mapParametersFilter.ts @@ -6,8 +6,13 @@ export const mapParametersFilter = (parametersFilter: FilterOptionsUrlQueryType return null; } + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (parametersFilter.parameters?.some((param) => param.parameter === undefined)) { + return null; + } + const parameters = parametersFilter.parameters?.map((parameterOption) => ({ - ...parameterOption, + parameter: parameterOption.parameter, values: parameterOption.values ?? [], maximalValue: parameterOption.maximalValue ?? null, minimalValue: parameterOption.minimalValue ?? null,