diff --git a/apps/catalog-portal/app/actions/actions.ts b/apps/catalog-portal/app/actions/actions.ts index 570f836f9..246714c82 100644 --- a/apps/catalog-portal/app/actions/actions.ts +++ b/apps/catalog-portal/app/actions/actions.ts @@ -98,7 +98,7 @@ export async function getAllCatalogs() { const { serviceCatalogs, publicServiceCatalogs } = await getServiceCatalogs(); const isEmpty = - (!datasetCatalogs?._embedded || datasetCatalogs.length === 0) && + (!datasetCatalogs?._embedded || datasetCatalogs?._embedded?.catalogs.length === 0) && (!dataServiceCatalogs || dataServiceCatalogs.length === 0) && (!conceptCatalogs || conceptCatalogs.length === 0) && (!recordsOfProcessingActivities || recordsOfProcessingActivities.length === 0) && diff --git a/apps/catalog-portal/specs/index.spec.tsx b/apps/catalog-portal/specs/index.spec.tsx deleted file mode 100644 index 819d82640..000000000 --- a/apps/catalog-portal/specs/index.spec.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { render, screen } from '@testing-library/react'; -import Home from '../app/page'; - -jest.mock('next/headers', () => ({ - cookies: jest.fn(), -})); - -jest.mock('next/navigation', () => ({ - redirect: jest.fn(), -})); - -describe('Home', () => { - it('should render successfully', async () => { - const { baseElement } = render(); - expect(baseElement).toBeTruthy(); - }); -});