Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 11, 2024
1 parent 9733261 commit 1569e9f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ export class AlgoliaIndexSegmentManagerServiceImpl implements AlgoliaIndexSegmen
}): GenerateNewIndexSegmentsResult {
const navigationConfig = dbDocsDefinition.config.navigation;

// TODO: handle root
if (navigationConfig == null) {
return {
type: "versioned",
configSegmentTuples: [],
};
}

return visitDbNavigationConfig<GenerateNewIndexSegmentsResult>(navigationConfig, {
versioned: (config) => {
const configSegmentTuples = config.versions.map((v) => {
Expand Down

0 comments on commit 1569e9f

Please sign in to comment.