@orderingstack/front-components-product-configurator 1.4.2-beta.22 → 1.4.2-beta.23
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/dist/index.es.js
CHANGED
|
@@ -6944,11 +6944,12 @@ function useMenuOptions(product, nestedLvl, parentKind, parentSelCtx) {
|
|
|
6944
6944
|
product,
|
|
6945
6945
|
isFilterValidated
|
|
6946
6946
|
);
|
|
6947
|
+
console.log("LOG1 useMenuOptions useEffect isFilterValidated", isFilterValidated, product);
|
|
6947
6948
|
console.log("LOG1 useMenuOptions useEffect productsToUnselect", productsToUnselect);
|
|
6948
6949
|
console.log("LOG1 useMenuOptions useEffect productsToSelect", productsToSelect);
|
|
6949
6950
|
selectProductsInForm(productsToSelect, setValue, initialSelected);
|
|
6950
6951
|
unselectProductsInForm(productsToUnselect, setValue);
|
|
6951
|
-
}, [isFilterValidated
|
|
6952
|
+
}, [isFilterValidated]);
|
|
6952
6953
|
return {
|
|
6953
6954
|
isFilterValidated,
|
|
6954
6955
|
selected,
|
|
@@ -8954,7 +8955,7 @@ const selectUnselectProduct = (setValue, getValues, product, isChecked, unregist
|
|
|
8954
8955
|
const groupsPath = `filterWithCnt.${fltCtx}`;
|
|
8955
8956
|
const groupCntPath = `filterWithCnt.${fltCtx}.${selCtx}`;
|
|
8956
8957
|
const fltCtxPath = `filter.${fltCtx}`;
|
|
8957
|
-
(_b = Object.keys(
|
|
8958
|
+
(_b = Object.keys(emit)) == null ? void 0 : _b.forEach((emitKey) => {
|
|
8958
8959
|
var _a2, _b2, _c;
|
|
8959
8960
|
const groupValue = getValues(`${groupCntPath}.${emitKey}`) || 0;
|
|
8960
8961
|
if (groupValue) {
|