Skip to content

Commit ba8c47e

Browse files
cursoragentarmenzg
andcommitted
fix(integrations): keep repos loading until all pages fetched
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
1 parent 2699072 commit ba8c47e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,14 @@ export function IntegrationCodeMappings({integration}: {integration: Integration
180180
data: fetchedRepos = [],
181181
isPending: isPendingReposQuery,
182182
isError: isErrorRepos,
183+
hasNextPage: hasNextReposPage,
183184
isFetchingNextPage: isFetchingNextReposPage,
184185
} = repositoriesQuery;
185186

186-
const isPendingRepos = isPendingReposQuery || isFetchingNextReposPage;
187+
const isPendingRepos =
188+
isPendingReposQuery ||
189+
isFetchingNextReposPage ||
190+
(!!hasNextReposPage && !isErrorRepos);
187191

188192
const pathConfigs = useMemo(() => {
189193
return sortBy(fetchedPathConfigs, [

0 commit comments

Comments
 (0)