learningequality / learningequality/studio

TypeError: can't access property "grade_levels", e is undefined

Open
#5,982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Sentry Issue: STUDIO-JTC

TypeError: can't access property "grade_levels", e is undefined
  at getMergedMapFields (./shared/utils/helpers.js:650:37)
  at updateContentNode (./channelEdit/vuex/contentNode/actions.js:396:10)
  at xY.methods.inheritMetadata (channelEdit/views/CurrentTopicView.vue:1026:1)
  at AR.methods.handleContinue (channelEdit/components/edit/InheritAncestorMetadataModal.vue:296:1)
  at AR.methods.checkInheritance (channelEdit/components/edit/InheritAncestorMetadataModal.vue:200:1)
...
(12 additional frame(s) were not displayed)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in shared/utils/helpers.js at getMergedMapFields around line 650, then trace its call through channelEdit/vuex/contentNode/actions.js and the inheritance handlers in CurrentTopicView.vue and InheritAncestorMetadataModal.vue. Reproduce the inheritance flow and determine why the value used for grade_levels is undefined; done means the flow no longer raises this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.