@mintlify/common 1.0.750 → 1.0.752

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.
@@ -175,8 +175,8 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
175
175
  if (hasTopLayer) {
176
176
  const lastTopLevel = contents.at(-1);
177
177
  if (lastTopLevel &&
178
- lastTopLevel.tabId === currentTabId &&
179
- lastTopLevel.viewId === currentViewId) {
178
+ (lastTopLevel.tabId === undefined || lastTopLevel.tabId === currentTabId) &&
179
+ (lastTopLevel.viewId === undefined || lastTopLevel.viewId === currentViewId)) {
180
180
  arrToPushInto = lastTopLevel.children;
181
181
  }
182
182
  }