Bug 1431334 - Fix typo in getNewCurrentGroup;r=bgrins.
Replaces "currentGoup" with "currentGroup".
MozReview-Commit-ID: 1s34ko24b1i
--- a/devtools/client/webconsole/new-console-output/reducers/messages.js
+++ b/devtools/client/webconsole/new-console-output/reducers/messages.js
@@ -342,21 +342,21 @@ function messages(state = MessageState()
visibleMessages: messagesToShow,
filteredMessagesCount: filtered,
};
}
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];
}
}
return newCurrentGroup;
}