Files
wekan/models/lib/importedTableRows.js
T
Lauri Ojansivu 9289edc3ec Audit menu actions and repair import data loss and policy enforcement
Wire organization bulk controls, preserve Jira ADF descriptions and activity-independent attachments, skip empty CSV rows, and reject invalid source shapes. Apply the import-disable switch and shared transfer validation to Trello HTTP imports.

Add documented dummy format fixtures, positive and negative browser checks, menu inventory guards, and an implementation audit with explicit coverage and format limitations. Thirty new Chromium checks and the corrected cross-board move regression pass on macOS ARM64 with FerretDB; focused Node suites pass.

Thanks to xet7.
2026-09-23 19:49:33 +03:00

8 lines
331 B
JavaScript

// CSV parsers represent trailing newlines as empty rows. Keep the header and
// every row containing data, including numeric zero or an empty title with text.
export function importedTableRows(rows) {
return rows.filter((row, index) => index === 0 || row.some(
value => value != null && String(value).trim() !== '',
));
}