Skip to content

Commit f9a0ce2

Browse files
Repopulate Compare Graph on Subject Back Button
- When user clicks on the back button it will repopulate to whatever is currently selected (topic or subtopic)
1 parent b4e7f47 commit f9a0ce2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/subtopicView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ subtopicViewBackButton_el.addEventListener('click', async () => {
7373
await populateTopicView();
7474
await populate30DayGraph('All');
7575
await populateAnnualGraph('All');
76+
await populateWeeklyCompareGraph('All');
7677
currentSelectedTopic = null;
7778
} else if (subjectViewLocation === 1){
7879
await populateSubtopics(currentSelectedTopic.id, currentSelectedTopic.topic);
7980
await populateSpecificQuickTimes('topic', currentSelectedTopic.id);
8081
await populate30DayGraph('Topic', currentSelectedTopic.id);
8182
await populateAnnualGraph('Topic', currentSelectedTopic.id);
82-
83+
await populateWeeklyCompareGraph('Topic', currentSelectedTopic.id);
8384
}
8485
});

0 commit comments

Comments
 (0)