Bug 1431334 - Fix typo in getNewCurrentGroup;r=bgrins.

Replaces "currentGoup" with "currentGroup".

MozReview-Commit-ID: 1s34ko24b1i

--HG--
extra : rebase_source : b6aca0ed2833d2f8be1ef696c323a5f3d896e7df
extra : source : 5d955c8c23dce3b897d1be7f92f6bd2f08869a13
This commit is contained in:
Nicolas Chevobbe 2018-01-17 10:02:14 +01:00
parent d332684bb0
commit 88453d6925

View File

@ -347,11 +347,11 @@ function messages(state = MessageState(), action, filtersState, prefsState) {
return state;
}
function getNewCurrentGroup(currentGoup, groupsById) {
function getNewCurrentGroup(currentGroup, groupsById) {
let newCurrentGroup = null;
if (currentGoup) {
if (currentGroup) {
// Retrieve the parent groups of the current group.
let parents = groupsById.get(currentGoup);
let parents = groupsById.get(currentGroup);
if (Array.isArray(parents) && parents.length > 0) {
// If there's at least one parent, make the first one the new currentGroup.
newCurrentGroup = parents[0];