Skip to content

Bug/CLARK-CLIENT-1C/fix-undefined-abvName-error - #2273

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/bug/clark-client-1c-fix-undefined-abvname
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/bug/clark-client-1c-fix-undefined-abvname

Conversation

@sentry

@sentry sentry Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This PR addresses the TypeError: Cannot read properties of undefined (reading 'abvName') (CLARK-CLIENT-1C) that occurs when a user profile page is visited for a user with no released or unreleased collections.

The root cause was identified as unconditional access to collectionsReleased[0].abvName and collectionsUnreleased[0].abvName in both profile-learning-objects.component.ts and profile-learning-objects.component.html.

The fix involves adding length checks (collectionsReleased.length or collectionsUnreleased.length) before attempting to access the first element of these arrays. This ensures that the content function is only called with a valid abvName when collections actually exist, preventing the TypeError.

Fixes CLARK-CLIENT-1C

This PR was automatically generated by Sentry. You can adjust this setting at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants