@redneckz/wildless-cms-uni-blocks 0.14.222 → 0.14.223

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.
@@ -1551,9 +1551,10 @@
1551
1551
  const getValidation = (field, validator, required = false) => required ? withValidator(field, validator) : field;
1552
1552
 
1553
1553
  const AddressBranchField = JSX(({ field, input, isPremium = false }) => {
1554
- const regionKey = field('region')?.value?.text;
1554
+ const regionKey = field('region')?.value?.key;
1555
+ const regionText = field('region')?.value?.text;
1555
1556
  const addressBranch = isPremium
1556
- ? usePremiumBranchesByRegions()?.find((_) => _?.region === regionKey)?.branches
1557
+ ? usePremiumBranchesByRegions()?.find((_) => _?.region === regionText)?.branches
1557
1558
  : useBranches(regionKey)?.filter((branch) => branch?.address);
1558
1559
  useEffect(() => {
1559
1560
  if (field('region')?.value?.key !== '') {
@@ -6016,7 +6017,7 @@
6016
6017
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6017
6018
  });
6018
6019
 
6019
- const packageVersion = "0.14.221";
6020
+ const packageVersion = "0.14.222";
6020
6021
 
6021
6022
  exports.Blocks = Blocks;
6022
6023
  exports.ContentPage = ContentPage;