home · contact · privacy
Fix /edit_structured per-line buttons not working. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 8 Feb 2026 18:01:16 +0000 (19:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 8 Feb 2026 18:01:16 +0000 (19:01 +0100)
src/templates/edit_structured.js

index c988c0b7026d60d66428e192ebc0ee021216cad4..6fecc4843e3a1f11fb71c2537ce6af716e46b3cf 100644 (file)
@@ -123,7 +123,7 @@ const updateForm = () => {
         btn.disabled = disabled;
         btn.onclick = () => {
             let nRowsSkipped = LEN_EMPTY; // ignore bookingLines-empty rows
         btn.disabled = disabled;
         btn.onclick = () => {
             let nRowsSkipped = LEN_EMPTY; // ignore bookingLines-empty rows
-            table.rows.forEach((row, idx) => {
+            Array.from(table.rows).forEach((row, idx) => {
                 if (row.classList.contains("skip")) {
                     nRowsSkipped++;
                     return;
                 if (row.classList.contains("skip")) {
                     nRowsSkipped++;
                     return;