fix: fixed variable name for previous commit - #96
This commit is contained in:
parent
ab9fce56f5
commit
f91a7d0eae
2 changed files with 1 additions and 7 deletions
|
|
@ -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 ?? [];
|
||||
|
|
|
|||
|
|
@ -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)'/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue