nox-validation 1.6.7 → 1.6.9

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/lib/validate.js CHANGED
@@ -456,8 +456,7 @@ const validateMetaRules = (
456
456
  // SEO interface: onlyFormFields, is empty in existingForm, getNodes, and not hidden
457
457
  (field?.meta?.interface === constants.interfaces.SEO &&
458
458
  !field?.meta?.hidden &&
459
- onlyFormFields &&
460
- isEmpty(getValue(existingForm, currentPath)) &&
459
+ (onlyFormFields ? isEmpty(getValue(existingForm, currentPath)) : true) &&
461
460
  getNodes)
462
461
  ) {
463
462
  getSelectedNodes({
@@ -487,7 +486,11 @@ const validateMetaRules = (
487
486
  ? extractFirstType(node.key)
488
487
  : null;
489
488
 
490
- if (!fPath.includes(currentPath)) {
489
+ if (
490
+ currentPath &&
491
+ currentPath?.trim() !== "" &&
492
+ !fPath.includes(currentPath)
493
+ ) {
491
494
  fPath = `${currentPath}.${fPath}`;
492
495
  }
493
496