@mintlify/validation 0.1.288 → 0.1.290

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.
@@ -127,12 +127,12 @@ const processDivisions = (type, divisions = [], navigationGroups = [], shouldIns
127
127
  }
128
128
  const { matchedGroups, unmatchedGroups } = findPagesForPrefix(remainingGroups, division, versionName, ignoredDivisions);
129
129
  remainingGroups = unmatchedGroups;
130
+ const divisionWithoutHref = _.omit(baseDivision, 'href');
131
+ if (moreTabs.length)
132
+ return Object.assign(Object.assign({}, divisionWithoutHref), { tabs: moreTabs });
133
+ if (moreAnchors.length)
134
+ return Object.assign(Object.assign({}, divisionWithoutHref), { anchors: moreAnchors });
130
135
  if (matchedGroups.length) {
131
- const divisionWithoutHref = _.omit(baseDivision, 'href');
132
- if (moreTabs.length)
133
- return Object.assign(Object.assign({}, divisionWithoutHref), { tabs: moreTabs });
134
- if (moreAnchors.length)
135
- return Object.assign(Object.assign({}, divisionWithoutHref), { anchors: moreAnchors });
136
136
  return Object.assign(Object.assign({}, divisionWithoutHref), { groups: matchedGroups });
137
137
  }
138
138
  if (!matchedGroups.length && !isAbsoluteUrl(division.url) && !division.openapi)