#27462·oppia

[BUG]: Contributor dashboard UI freezes when loadMore opportunities request rejects

Author: alok844937-designCreated Sep 19, 2026Updated Sep 23, 2026
Labelstriage neededbug

Describe the bug

In opportunities-list.component.ts, the loadMoreOpportunities(...).then(...) callbacks (in the initial load and in gotoPage) have no .catch handler. When getMoreTranslationOpportunitiesAsync / getMoreSkillOpportunitiesAsync rejects — which they do by design, throwing "No more ... opportunities available." when the service's internal _more...Available flag disagrees with the component's this.more — the rejection is unhandled and loadingOpportunityData is left true. As a result the loading spinner never clears and the tab appears frozen.

This was found while investigating the fatal .slice crash in #19263, but it's a separate problem (a UI freeze from an unhandled rejection, not a crash), so filing it separately to keep the fixes atomic.

URL of the page where the issue is observed.

http://localhost:8181/contributor-dashboard

Steps To Reproduce

  1. Start the dev server and open http://localhost:8181/contributor-dashboard, then sign in.
  2. Go to the Contributions and Review section (Translate or Submit Question opportunities).
  3. Page through the opportunities until the point where the component's this.more is still true but the service's internal _more...Available flag has become false (i.e. request a further page after the last available one).
  4. getMore...OpportunitiesAsync rejects with "No more ... opportunities available.", the .then callback never runs, and loadingOpportunityData stays true.
  5. The loading spinner keeps spinning and the tab stays frozen.

Expected Behavior

When the load request rejects, the component should handle the rejection gracefully — reset loadingOpportunityData to false and show the existing/empty list rather than leaving the UI stuck in a permanent loading state.

Screenshots/Videos

No response

What device are you using?

Desktop

Operating System

MacOS

What browsers are you seeing the problem on?

Chrome

Browser version

No response

Additional context

No response

Tips for developers

Before addressing the bug, please identify which PR caused the issue (you can follow the steps here). If you identify the PR, comment on the issue with a link to it. If not, mention the commit hash of the oldest commit you saw the bug on (and the month and year it was made in).

Then, please leave a comment with details of the approach that you plan to take to fix the issue (see example).

Note: If this is your first Oppia issue, please make sure to follow our guidelines for choosing an issue and setting things up. You will also need to show a demo of the fix working correctly on your local machine. Thanks!