fix: restore default mh team selection

This commit is contained in:
hyunho
2026-03-30 10:24:28 +09:00
parent c9a93ea936
commit e67fd41cbf

View File

@@ -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();