diff --git a/deploy/app.js b/deploy/app.js index bec846d..10a7ce2 100644 --- a/deploy/app.js +++ b/deploy/app.js @@ -35,7 +35,7 @@ var fileTable = document.getElementById('fileTable'); * console.log(state) показывает ВСЁ состояние в любой момент. */ function render(state) { - renderTable(); + renderFiles(state); } // Синхронизация БД с таблицей — удалить всё, чего нет в state.files @@ -95,7 +95,7 @@ function statusToHTML(st) { } } -function renderTable() { +function renderFiles(state) { if (state.files.length === 0) { fileTable.innerHTML = 'Нет файлов — выберите .docx / .pdf'; } else {