Skip to content

Commit

Permalink
fix: stuck loading issue
Browse files Browse the repository at this point in the history
Co-authored-by: Navin Karkera <[email protected]>
  • Loading branch information
rpenido and navinkarkera authored Feb 21, 2025
1 parent 586c3d8 commit a3d86b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library-authoring/component-info/ComponentUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ComponentUsage = ({ usageKey }: ComponentUsageProps) => {
return <AlertError error={errorDownstreamLinks || errorIndexDocuments} />;
}

if (isLoadingDownstreamLinks || isLoadingIndexDocuments) {
if (isLoadingDownstreamLinks || (isLoadingIndexDocuments && !!downstreamKeys.length)) {
return <Loading />;
}

Expand Down

0 comments on commit a3d86b4

Please sign in to comment.