diff --git a/components/dashboard/src/repositories/list/RepositoryList.tsx b/components/dashboard/src/repositories/list/RepositoryList.tsx index 26065fc3bf39d0..11b3436c7b87b9 100644 --- a/components/dashboard/src/repositories/list/RepositoryList.tsx +++ b/components/dashboard/src/repositories/list/RepositoryList.tsx @@ -19,7 +19,7 @@ import { TextInput } from "../../components/forms/TextInputField"; const RepositoryListPage: FC = () => { const history = useHistory(); const [searchTerm, setSearchTerm, debouncedSearchTerm] = useStateWithDebounce(""); - const { data, isLoading } = useListConfigurations({ searchTerm: debouncedSearchTerm, page: 1, pageSize: 10 }); + const { data, isLoading } = useListConfigurations({ searchTerm: debouncedSearchTerm, page: 0, pageSize: 10 }); const [showCreateProjectModal, setShowCreateProjectModal] = useState(false); const handleProjectCreated = useCallback( diff --git a/components/gitpod-db/src/typeorm/project-db-impl.ts b/components/gitpod-db/src/typeorm/project-db-impl.ts index b56e1c1be8f00a..f6243b244b5742 100644 --- a/components/gitpod-db/src/typeorm/project-db-impl.ts +++ b/components/gitpod-db/src/typeorm/project-db-impl.ts @@ -80,7 +80,7 @@ export class ProjectDBImpl extends TransactionalDBImpl implements Pro const queryBuilder = projectRepo .createQueryBuilder("project") - .andWhere( + .where( new Brackets((qb) => { qb.where("project.cloneUrl LIKE :searchTerm", { searchTerm: `%${searchTerm}%` }).orWhere( "project.name LIKE :searchTerm",