diff --git a/backend/app/src/test/kotlin/io/tolgee/repository/UserAccountRepositoryTest.kt b/backend/app/src/test/kotlin/io/tolgee/repository/UserAccountRepositoryTest.kt index 9848fe0031..a00c95d443 100644 --- a/backend/app/src/test/kotlin/io/tolgee/repository/UserAccountRepositoryTest.kt +++ b/backend/app/src/test/kotlin/io/tolgee/repository/UserAccountRepositoryTest.kt @@ -2,6 +2,7 @@ package io.tolgee.repository import io.tolgee.AbstractSpringTest import io.tolgee.development.DbPopulatorReal +import io.tolgee.dtos.request.task.UserAccountFilters import io.tolgee.model.views.UserAccountWithOrganizationRoleView import io.tolgee.testing.assertions.Assertions.assertThat import org.junit.jupiter.api.Test @@ -47,7 +48,13 @@ class UserAccountRepositoryTest : AbstractSpringTest() { permissionService.grantFullAccessToProject(franta, repo) - val returned = userAccountRepository.getAllInProject(repo.id, PageRequest.of(0, 20), "franta") + val returned = + userAccountRepository.getAllInProject( + repo.id, + PageRequest.of(0, 20), + "franta", + filters = UserAccountFilters(), + ) assertThat(returned.content).hasSize(1) } } diff --git a/webapp/src/component/task/taskFilter/TaskFilter.tsx b/webapp/src/component/task/taskFilter/TaskFilter.tsx index 00989e19d2..56d95d3ae5 100644 --- a/webapp/src/component/task/taskFilter/TaskFilter.tsx +++ b/webapp/src/component/task/taskFilter/TaskFilter.tsx @@ -90,7 +90,7 @@ export const TaskFilter = ({ method: 'get', query: { size: 10000, filterId: value.projects }, options: { - enabled: !project, + enabled: !project && Boolean(value.projects?.length), keepPreviousData: true, }, });