@miso.ai/client-sdk-ui 1.12.2-beta.0 → 1.12.2-beta.1
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.
|
@@ -255,12 +255,6 @@ class AffiliationLayout extends _collection.default {
|
|
|
255
255
|
}
|
|
256
256
|
this.itemIndex--;
|
|
257
257
|
}
|
|
258
|
-
_getItems(state) {
|
|
259
|
-
const {
|
|
260
|
-
products
|
|
261
|
-
} = state.value || {};
|
|
262
|
-
return products;
|
|
263
|
-
}
|
|
264
258
|
_render(element, states, controls) {
|
|
265
259
|
super._render(element, states, controls);
|
|
266
260
|
// sync again for incremental item rendering
|
|
@@ -197,7 +197,7 @@ class CollectionLayout extends _template.default {
|
|
|
197
197
|
this._untrackTrigger();
|
|
198
198
|
}
|
|
199
199
|
_getItems(state) {
|
|
200
|
-
return state.value;
|
|
200
|
+
return state.value && (state.value.products || state.value);
|
|
201
201
|
}
|
|
202
202
|
_getListElement(element) {
|
|
203
203
|
return element.querySelector('[data-role="list"]');
|
package/dist/cjs/version.js
CHANGED
package/package.json
CHANGED
|
@@ -221,11 +221,6 @@ export default class AffiliationLayout extends CollectionLayout {
|
|
|
221
221
|
this.itemIndex--;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
_getItems(state) {
|
|
225
|
-
const { products } = state.value || {};
|
|
226
|
-
return products;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
224
|
_render(element, states, controls) {
|
|
230
225
|
super._render(element, states, controls);
|
|
231
226
|
// sync again for incremental item rendering
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.12.2-beta.
|
|
1
|
+
export default '1.12.2-beta.1';
|