fix: restore default mh team selection
This commit is contained in:
@@ -2470,14 +2470,16 @@
|
||||
searchTeams = [...new Set(allRows.map(r => String(r[columnMap.team] || '').trim()))].filter(Boolean).sort();
|
||||
searchPeopleData = buildScopedPeopleData(allRows);
|
||||
|
||||
teamSelect.innerHTML = `<option value="${ALL_TEAM_VALUE}">전체</option>` + allTeams.map(t => `<option value="${t}">${t}</option>`).join('');
|
||||
teamSelect.innerHTML = allTeams.map(t => `<option value="${t}">${t}</option>`).join('') + `<option value="${ALL_TEAM_VALUE}">전체</option>`;
|
||||
|
||||
if (currentTeam === ALL_TEAM_VALUE) {
|
||||
teamSelect.value = ALL_TEAM_VALUE;
|
||||
} else if (currentTeam && allTeams.includes(currentTeam)) {
|
||||
teamSelect.value = currentTeam;
|
||||
} else if (allTeams.length > 0) {
|
||||
teamSelect.value = allTeams[0];
|
||||
} else {
|
||||
teamSelect.value = ALL_TEAM_VALUE;
|
||||
teamSelect.value = '';
|
||||
}
|
||||
|
||||
updateFilters();
|
||||
|
||||
Reference in New Issue
Block a user