diff --git a/backend/api/src/main/kotlin/io/tolgee/facade/ProjectWithStatsFacade.kt b/backend/api/src/main/kotlin/io/tolgee/facade/ProjectWithStatsFacade.kt index f81d5b250e..f1c6980810 100644 --- a/backend/api/src/main/kotlin/io/tolgee/facade/ProjectWithStatsFacade.kt +++ b/backend/api/src/main/kotlin/io/tolgee/facade/ProjectWithStatsFacade.kt @@ -69,7 +69,11 @@ class ProjectWithStatsFacade( TranslationState.UNTRANSLATED to untranslatedPercent ) ) - ProjectWithStatsView(projectWithLanguagesView, projectStatistics, languages[projectWithLanguagesView.id]!!) + ProjectWithStatsView( + view = projectWithLanguagesView, + stats = projectStatistics, + languages = languages[projectWithLanguagesView.id] ?: listOf() + ) } val page = PageImpl(projectsWithStatsContent, projects.pageable, projects.totalElements) return pagedWithStatsResourcesAssembler.toModel(page, projectWithStatsModelAssembler) diff --git a/e2e/cypress/e2e/projects/leaving.cy.ts b/e2e/cypress/e2e/projects/leaving.cy.ts index 1015242297..d7eb73934b 100644 --- a/e2e/cypress/e2e/projects/leaving.cy.ts +++ b/e2e/cypress/e2e/projects/leaving.cy.ts @@ -5,7 +5,7 @@ import { assertMessage, confirmHardMode } from '../../common/shared'; import { projectLeavingTestData } from '../../common/apiCalls/testData/testData'; import { login } from '../../common/apiCalls/common'; -describe('Projects Basics', () => { +describe('Leaving project', () => { beforeEach(() => { projectLeavingTestData.clean(); projectLeavingTestData.generate();