Fix for the multiselection.

This is the fix for the multiselection case.
(It doesn't include the solution for User Data.)
This commit is contained in:
Alezia Kurdis 2020-03-03 19:21:14 -05:00 committed by GitHub
parent e6a45690ba
commit ed9918a537
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4491,7 +4491,15 @@ function loaded() {
}
function showOnTheSamePage(entityType) {
if (!GROUPS_PER_TYPE[entityType].includes(currentTab)) {
var i;
var numbType = entityType.length;
var matchingType = 0;
for (i = 0; i < numbType; i++) {
if (GROUPS_PER_TYPE[entityType[i]].includes(currentTab)) {
matchingType = matchingType + 1;
}
}
if (matchingType !== numbType) {
currentTab = "base";
}
showPage(currentTab);