Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 11, 2024
1 parent ad676b0 commit 9733261
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions servers/fdr/src/__test__/local/services/docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const WRITE_DOCS_REGISTER_DEFINITION: DocsV1Write.DocsDefinition = {
items: [],
landingPage: undefined,
},
root: undefined,
typography: {
headingsFont: {
name: "Syne",
Expand Down
1 change: 1 addition & 0 deletions servers/fdr/src/__test__/local/services/docsCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const WRITE_DOCS_REGISTER_DEFINITION: DocsV1Write.DocsDefinition = {
items: [],
landingPage: undefined,
},
root: undefined,
title: undefined,
defaultLanguage: undefined,
announcement: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ it("Load snippets by endpoint id", async () => {
} satisfies DocsV1Write.NavigationItem,
],
},
root: undefined,
title: undefined,
defaultLanguage: undefined,
announcement: undefined,
Expand Down
2 changes: 1 addition & 1 deletion servers/fdr/src/controllers/docs/v1/getDocsReadService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function getSearchInfoFromDocs({
docsDbDefinition: DocsV1Db.DocsDefinitionDb;
app: FdrApplication;
}): Algolia.SearchInfo {
if (indexSegmentIds == null) {
if (indexSegmentIds == null || docsDbDefinition.config.navigation == null) {
return { type: "legacyMultiAlgoliaIndex", algoliaIndex };
}
return visitDbNavigationConfig<Algolia.SearchInfo>(docsDbDefinition.config.navigation, {
Expand Down
1 change: 1 addition & 0 deletions servers/fdr/src/healthchecks/checkRedis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const HEALTHCHECK_DOCS_RESPONSE: CachedDocsResponse = {
items: [],
landingPage: undefined,
},
root: undefined,
title: undefined,
defaultLanguage: undefined,
announcement: undefined,
Expand Down

0 comments on commit 9733261

Please sign in to comment.