Steps to replicate the issue (include links if applicable):
- Complete 5 copyedit tasks on testwiki
- Click "Try new task" when prompted to try "links"
What happens?:
Uncaught TypeError: can't access property "difficulty", this.taskType is undefined buildCard https://test.wikipedia.org/w/index.php?title=Wright_&_Wright_Architects&gesuggestededit=1 line 10 > injectedScript:28 SmallTaskCard https://test.wikipedia.org/w/index.php?title=Wright_&_Wright_Architects&gesuggestededit=1 line 10 > injectedScript:26 getCard https://test.wikipedia.org/w/index.php?title=Wright_&_Wright_Architects&gesuggestededit=1 line 10 > injectedScript:15 updateTask https://test.wikipedia.org/w/index.php?title=Wright_&_Wright_Architects&gesuggestededit=1 line 10 > injectedScript:16 updateNextTask https://test.wikipedia.org/w/index.php?title=Wright_&_Wright_Architects&gesuggestededit=1 line 10 > injectedScript:17
The failing code:
$taskType = $('<span>').addClass('mw-ge-small-task-card-tasktype').addClass('mw-ge-small-task-card-tasktype-difficulty-' + this.taskType.difficulty).prepend(new OO.ui.IconWidget({ icon: 'difficulty-' + this.taskType.difficulty }).$element);
The post-edit dialog appears in a "loading" state.
What should have happened instead?:
The post-edit dialog should contain "links" tasks.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):