From 06bf037a2c3862ebd3a6959d47be108bb2018a75 Mon Sep 17 00:00:00 2001 From: George Marcus Date: Thu, 19 Dec 2024 03:47:43 +0200 Subject: [PATCH] perf: small performance improvement --- src/utils/enrichers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/enrichers.ts b/src/utils/enrichers.ts index c1ebb28..eea9111 100644 --- a/src/utils/enrichers.ts +++ b/src/utils/enrichers.ts @@ -64,7 +64,7 @@ export const fillSingleProject = async (props: ProjectScopeProps) => { if (props.projectId) { return props; } - const { data } = await props.apiClient.listProjects({}); + const { data } = await props.apiClient.listProjects({ limit: 2 }); if (data.projects.length === 0) { throw new Error('No projects found'); }