Skip to content

Commit

Permalink
fixing pagination param & query
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed Nov 7, 2023
1 parent 3fea4ee commit b818b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion components/gitpod-db/src/typeorm/project-db-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ProjectDBImpl extends TransactionalDBImpl<ProjectDB> 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",
Expand Down

0 comments on commit b818b0e

Please sign in to comment.