@fern-api/fdr-sdk 1.2.50-22414d3dea → 1.2.50-c32b5f74fd

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.
@@ -1043,9 +1043,12 @@ function apiLeafNodeFromNavRoute(route, basePath, segmentApiDefinitionId2) {
1043
1043
  return apiLeafNodeFromNavRouteInternal(ctx, route, segmentApiDefinitionId2);
1044
1044
  }
1045
1045
  function apiLeafNodeFromNavRouteInternal(ctx, route, segmentApiDefinitionId2) {
1046
+ if (route.fullPath == null) {
1047
+ return void 0;
1048
+ }
1046
1049
  const md = route.metadata;
1047
1050
  const apiDefinitionId = ApiDefinitionId(metaStr(md, "apiDefinitionId") ?? segmentApiDefinitionId2);
1048
- const slug = ctx.contentSlug(route.fullPath ?? "");
1051
+ const slug = ctx.contentSlug(route.fullPath);
1049
1052
  const title = metaStr(md, "title") ?? "";
1050
1053
  const icon = metaStr(md, "icon");
1051
1054
  const viewers = toViewers(metaStrArr(md, "viewers"));