Only add new enrollments to _allEnrollments
Only add new enrollments to _allEnrollments

Small bug, when I refactored this I missed this case. If you pin a course in the course selector that hasn't already been fetched by My Courses, we were appending the full page of enrollments (all of which we already have) to _allEnrollments, rather than just new ones. This meant the "View All Courses (50+)" link would change to "View All Courses (100+)" after pinning one course, "(150+)" after two, etc.

Brightspace/d2l-my-courses-ui