diff --git a/app/utils/powerSchedule.js b/app/utils/powerSchedule.js index 0eca5cd..5584c7e 100644 --- a/app/utils/powerSchedule.js +++ b/app/utils/powerSchedule.js @@ -31,6 +31,7 @@ const { addLogFunction } = require("./addLogFunctionJS"); // Lặp qua từng hàng và lấy nội dung của các cột (thẻ ) trong hàng const data = []; + rows.forEach((row) => { const columns = Array.from(row.querySelectorAll("td")); // Lựa chọn tất cả các cột (thẻ ) trong hàng const rowData = columns.map((column) => column.textContent.trim()); // Lấy nội dung của các cột và xóa khoảng trắng