HF RL Explorer

Fix chapter select going to the wrong page and not clearing after removing all entries

Fix chapter select going to the wrong page and not clearing after removing all entries: a task in github-trending-environments-10k (Harbor dataset). Title: Fix chapter select going to the wrong page and not clearing after removing all entries

The task

**Title:** Fix chapter select going to the wrong page and not clearing after removing all entries

Part of scalingX/github-trending-environments-10k.