fix: fixed variable name for previous commit - #96

This commit is contained in:
Noah Lancien 2026-02-25 15:50:56 +01:00
parent ab9fce56f5
commit f91a7d0eae
2 changed files with 1 additions and 7 deletions

View file

@ -222,12 +222,6 @@
this.tags = jsonData.tags ?? [];
this.search = jsonData.search ?? "";
this.products = jsonData.products ?? [];
console.log(this.products);
for (const product of this.products) {
console.log(product.promotion);
console.log(product.promotion ? product.promotion[0].is_old_price_displayed : 'null');
console.log(product.promotion ? product.promotion[0].id : 'pas de id');
}
this.productsCount = jsonData.productsCount ?? this.products.length ?? 0;
this.productsResults = jsonData.productsResults ?? 0;
this.filters = jsonData.filters ?? [];

View file

@ -19,7 +19,7 @@
'search' => $sessionFilter->search ?? '',
'filters' => $sessionFilter,
'filtersMenuIsOpen' => $filtersMenuIsOpen,
'shouldDisplayPrice' => \App\Helpers\BladeDirectivesHelper::shouldShowPrices(),
'shouldDisplayPrices' => \App\Helpers\BladeDirectivesHelper::shouldShowPrices(),
];
@endphp
<filter-component json-data='@json($dataComponent)'/>