fix set thresholds timeout

This commit is contained in:
thek4n 2026-06-05 17:00:57 +03:00
parent a5954bc83d
commit 7fac1ddc6b

View File

@ -554,7 +554,6 @@
clearTimeout(saveTimeout);
}
// Устанавливаем новый таймаут на 300 мс
saveTimeout = setTimeout(async () => {
try {
const response = await fetch('/thresholds', {
@ -584,7 +583,7 @@
toast.classList.add('show');
setTimeout(() => toast.classList.remove('show'), 1600);
}
}, 300);
}, 700);
}
async function saveThresholds() {