Устранено повторное появление подсказок модулей в журнале и починена проверка вложений

This commit is contained in:
dev
2026-11-07 12:45:28 +03:00
parent 77209f610b
commit 5c40409840
2 changed files with 31 additions and 5 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ form.addEventListener('submit', async (e) => {
}
// Проверка: если модуль требует вложений, то файлы должны быть прикреплены
const moduleAttachmentEnabled = moduleAttachments.get(moduleId) === true;
const moduleAttachmentEnabled = moduleAttachments.get((moduleInput.value || '').trim().toLowerCase()) === true;
if (moduleAttachmentEnabled && selectedFiles.length === 0) {
toast.textContent = 'Для этой темы необходимо прикрепить файлы';
toast.classList.add('show', 'error');