@riosst100/pwa-marketplace 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -411,7 +411,7 @@ const SetsData = props => {
|
|
|
411
411
|
<Divider className="mb-5 px-4 mt-5" />
|
|
412
412
|
<section className='singles-container'>
|
|
413
413
|
<div className={cn('singles-wrapper block', classes.singlesWrapper)}>
|
|
414
|
-
{
|
|
414
|
+
{setsData && Object.keys(setsData).length != 0 ? setRelases : (searchQuery ? <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found for <b>{searchQuery}</b> search query.</div> : <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found.</div>)}
|
|
415
415
|
</div>
|
|
416
416
|
</section>
|
|
417
417
|
</div>
|
|
@@ -112,8 +112,7 @@ const ShopBy = props => {
|
|
|
112
112
|
|
|
113
113
|
const { error, loading, dataResult, categoryUrlSuffix, categoryUrlKey, productType, filteredAvailableGroups, availableGroups, attributeData, alpha, category, activeFilters, pageInfo } = talonProps;
|
|
114
114
|
|
|
115
|
-
console.log('
|
|
116
|
-
console.log('loading', loading)
|
|
115
|
+
console.log('dataResult SHOPBY', dataResult)
|
|
117
116
|
|
|
118
117
|
if (loading) {
|
|
119
118
|
return <ShopByShimmer />;
|
|
@@ -155,7 +155,7 @@ export const useShopBy = props => {
|
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const rawData = queryResponse?.shopByData?.data
|
|
158
|
+
const rawData = queryResponse?.shopByData?.data;
|
|
159
159
|
if (!rawData) {
|
|
160
160
|
return null;
|
|
161
161
|
}
|
|
@@ -181,11 +181,12 @@ export const useShopBy = props => {
|
|
|
181
181
|
}, [queryResponse, sortby]);
|
|
182
182
|
|
|
183
183
|
const filteredOptions = useMemo(() => {
|
|
184
|
+
console.log('queryResponse', queryResponse)
|
|
184
185
|
if (!queryResponse) {
|
|
185
186
|
return null;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
const rawData = queryResponse?.shopByData?.data
|
|
189
|
+
const rawData = queryResponse?.shopByData?.data;
|
|
189
190
|
if (!rawData) {
|
|
190
191
|
return null;
|
|
191
192
|
}
|
|
@@ -221,6 +222,8 @@ export const useShopBy = props => {
|
|
|
221
222
|
return options;
|
|
222
223
|
}, [queryResponse, searchQuery]);
|
|
223
224
|
|
|
225
|
+
console.log('filteredOptions',filteredOptions)
|
|
226
|
+
|
|
224
227
|
const dataResult = useMemo(() => {
|
|
225
228
|
if (filteredOptions) {
|
|
226
229
|
return filteredOptions.reduce((acc, item) => {
|
|
@@ -240,7 +243,7 @@ export const useShopBy = props => {
|
|
|
240
243
|
return filteredOptions;
|
|
241
244
|
}, [filteredOptions])
|
|
242
245
|
|
|
243
|
-
|
|
246
|
+
console.log('dataResult',dataResult)
|
|
244
247
|
|
|
245
248
|
let availableGroups = originalDataResult ? Object.keys(originalDataResult).sort() : [];
|
|
246
249
|
|