diff --git a/src/components/Map/Drawer/SearchDrawerWrapper/GroupedSearchResults/BioEntitiesAccordion/BioEntitiesAccordion.component.test.tsx b/src/components/Map/Drawer/SearchDrawerWrapper/GroupedSearchResults/BioEntitiesAccordion/BioEntitiesAccordion.component.test.tsx index b16f506928a7236df0d2f84d783eecd727667fdf..d65d291524e7124c080827e2eff819f2018609eb 100644 --- a/src/components/Map/Drawer/SearchDrawerWrapper/GroupedSearchResults/BioEntitiesAccordion/BioEntitiesAccordion.component.test.tsx +++ b/src/components/Map/Drawer/SearchDrawerWrapper/GroupedSearchResults/BioEntitiesAccordion/BioEntitiesAccordion.component.test.tsx @@ -73,7 +73,8 @@ describe('BioEntitiesAccordion - component', () => { }); expect(screen.getByText('Content (10)')).toBeInTheDocument(); - expect(screen.getByText('Core PD map (3)')).toBeInTheDocument(); - expect(screen.getByText('Histamine signaling (5)')).toBeInTheDocument(); + expect(screen.getByText('Core PD map (5)')).toBeInTheDocument(); + expect(screen.getByText('Histamine signaling (2)')).toBeInTheDocument(); + expect(screen.getByText('PRKN substrates (3)')).toBeInTheDocument(); }); }); diff --git a/src/models/bioEntitySchema.ts b/src/models/bioEntitySchema.ts index 5a66d6127dfd206538d4a971782c5aea5fed4125..a747e0cddc8a2f3e1aad1e5293d9dc5e6ae6c350 100644 --- a/src/models/bioEntitySchema.ts +++ b/src/models/bioEntitySchema.ts @@ -33,7 +33,7 @@ export const bioEntitySchema = z.object({ synonyms: z.array(z.string()), formerSymbols: z.array(z.string()), fullName: z.string().nullable(), - compartmentName: z.string().nullable(), + compartmentName: z.string().nullable().optional(), abbreviation: z.string().nullable(), formula: z.string().nullable(), glyph: glyphSchema.nullable(),