Skip to content

Commit

Permalink
fix: Add limits to workspace jobs page
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Nov 3, 2024
1 parent 946813e commit d8f9be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const JobTable: React.FC<JobTableProps> = ({ workspaceId }) => {
);

const releaseJobTriggers = api.job.config.byWorkspaceId.list.useQuery(
{ workspaceId, filter },
{ workspaceId, filter, limit: 100 },
{ refetchInterval: 10_000, placeholderData: (prev) => prev },
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default async function JobsPage({

const releaseJobTriggers = await api.job.config.byWorkspaceId.list({
workspaceId: workspace.id,
limit: 0,
});

if (releaseJobTriggers.total === 0) return <JobsGettingStarted />;
Expand Down

0 comments on commit d8f9be3

Please sign in to comment.