Skip to content

Commit

Permalink
fix: set the overloaded pagesize this time as well, also 8 fits on th…
Browse files Browse the repository at this point in the history
…e page, not 9
  • Loading branch information
Tethik committed Nov 26, 2024
1 parent e58bee2 commit 89eed65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/components/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Home() {
<TeamSystemsPageList
key={team.id}
teamId={team.id}
pagesize={user?.teams.length > 1 ? 5 : 10}
pagesize={user?.teams.length > 1 ? 4 : 8}
/>
</Grid>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { SystemComplianceBadge } from "../../elements/SystemComplianceBadge";
import Loading from "../../loading";
import { useGetTeamQuery } from "../../../api/gram/team";

export function TeamSystemsPageList({ teamId, pagesize = 9 }) {
export function TeamSystemsPageList({ teamId, pagesize = 8 }) {
const [page, setPage] = useState(0);

const opts = { filter: "team", teamId, pagesize, page };
Expand Down

0 comments on commit 89eed65

Please sign in to comment.