Ver 14.01 Teams selection fixed

This commit is contained in:
Flatlogic Bot 2026-02-08 22:30:30 +00:00
parent d3e1dcb6b3
commit 8724b9d7bb

View File

@ -164,6 +164,13 @@
if (teamSelect) { if (teamSelect) {
teamSelect.addEventListener('change', function() { teamSelect.addEventListener('change', function() {
const teamId = this.value; const teamId = this.value;
// First, deselect ALL workers to clear previous selection
const allCheckboxes = document.querySelectorAll('input[name="workers"]');
allCheckboxes.forEach(cb => {
cb.checked = false;
});
if (teamId && teamWorkersMap[teamId]) { if (teamId && teamWorkersMap[teamId]) {
const workerIds = teamWorkersMap[teamId]; const workerIds = teamWorkersMap[teamId];
// Select workers belonging to the team // Select workers belonging to the team