@orderingstack/front-components-product-configurator 1.4.2-beta.13 → 1.4.2-beta.15
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
|
@@ -6913,6 +6913,7 @@ const selectProductsInForm = (productToUnselect, setValueInForm, initialSelected
|
|
|
6913
6913
|
};
|
|
6914
6914
|
function useMenuOptions(product, nestedLvl, parentKind, parentSelCtx) {
|
|
6915
6915
|
const { selCtx, attrs = {} } = product;
|
|
6916
|
+
useStore((state) => state.filter);
|
|
6916
6917
|
const initialSelected = useStore((state) => state.initialSelected);
|
|
6917
6918
|
const currency = useStore((state) => state.currency);
|
|
6918
6919
|
const { setValue, getValues } = useFormContext();
|
|
@@ -6936,10 +6937,13 @@ function useMenuOptions(product, nestedLvl, parentKind, parentSelCtx) {
|
|
|
6936
6937
|
parentKind
|
|
6937
6938
|
});
|
|
6938
6939
|
useEffect(() => {
|
|
6940
|
+
console.log("isFilterValidated useEffect");
|
|
6939
6941
|
const { productsToSelect, productsToUnselect } = getProductToChangeInForm(
|
|
6940
6942
|
product,
|
|
6941
6943
|
isFilterValidated
|
|
6942
6944
|
);
|
|
6945
|
+
console.log({ productsToSelect });
|
|
6946
|
+
console.log({ productsToUnselect });
|
|
6943
6947
|
unselectProductsInForm(productsToUnselect, setValue);
|
|
6944
6948
|
selectProductsInForm(productsToSelect, setValue, initialSelected);
|
|
6945
6949
|
}, [isFilterValidated]);
|