learningequality / learningequality/studio

TypeError: this.currentChannel is undefined

Open
#4,800 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3 - low
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.

This user triggered multiple errors similar to this, after deleting the channel in which the error is said to have appeared. I'm curious what happens if a user has the channel edit page open, but deletes it in another tab.


Sentry Issue: STUDIO-HDH

TypeError: this.currentChannel is undefined
  at map (channelEdit/views/CurrentTopicView.vue:479:1)
  at CurrentTopicViewvue_type_script_lang_js_.computed.ancestors (channelEdit/views/CurrentTopicView.vue:475:1)
  at CurrentTopicViewvue_type_template_id_abfbc316_scoped_true_render (./channelEdit/views/CurrentTopicView.vue:27:22)
...
(11 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 channelEdit/views/CurrentTopicView.vue, especially the computed ancestors section around lines 475-479 and its template use at line 27. Reproduce the case by leaving the channel edit page open while deleting the channel in another tab, then verify the page no longer raises the reported 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
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.